mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Dont have account otr setting if built without otr
This commit is contained in:
parent
fd19b45a37
commit
1cd9bfd2e7
@ -3420,6 +3420,7 @@ _account_autocomplete(ProfWin *window, const char *const input, gboolean previou
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_LIBOTR
|
||||||
if ((num_args == 3 && space_at_end && (g_strcmp0(args[2], "otr") == 0))
|
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)) {
|
|| (num_args == 4 && (g_strcmp0(args[2], "otr") == 0) && !space_at_end)) {
|
||||||
GString *beginning = g_string_new("/account");
|
GString *beginning = g_string_new("/account");
|
||||||
@ -3431,6 +3432,7 @@ _account_autocomplete(ProfWin *window, const char *const input, gboolean previou
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if ((num_args == 3 && space_at_end && (g_strcmp0(args[2], "status") == 0))
|
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)) {
|
|| (num_args == 4 && (g_strcmp0(args[2], "status") == 0) && !space_at_end)) {
|
||||||
GString *beginning = g_string_new("/account");
|
GString *beginning = g_string_new("/account");
|
||||||
|
Loading…
Reference in New Issue
Block a user