1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Dont have account otr setting if built without otr

This commit is contained in:
Michael Vetter 2020-04-03 01:37:25 +02:00
parent fd19b45a37
commit 1cd9bfd2e7

View File

@ -3420,6 +3420,7 @@ _account_autocomplete(ProfWin *window, const char *const input, gboolean previou
return found;
}
}
#ifdef HAVE_LIBOTR
if ((num_args == 3 && space_at_end && (g_strcmp0(args[2], "otr") == 0))
|| (num_args == 4 && (g_strcmp0(args[2], "otr") == 0) && !space_at_end)) {
GString *beginning = g_string_new("/account");
@ -3431,6 +3432,7 @@ _account_autocomplete(ProfWin *window, const char *const input, gboolean previou
return found;
}
}
#endif
if ((num_args == 3 && space_at_end && (g_strcmp0(args[2], "status") == 0))
|| (num_args == 4 && (g_strcmp0(args[2], "status") == 0) && !space_at_end)) {
GString *beginning = g_string_new("/account");