diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-04-03 01:37:25 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-04-03 01:37:25 +0200 |
commit | 1cd9bfd2e7cbb7bac72ce72d7fb7c601f68bada2 (patch) | |
tree | df2fc08d03699deef4273eaa4b0f1187cae1d43e /src | |
parent | fd19b45a37adcaa36af72b51f8dfaeeae1e8a09b (diff) | |
download | profani-tty-1cd9bfd2e7cbb7bac72ce72d7fb7c601f68bada2.tar.gz |
Dont have account otr setting if built without otr
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_ac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 63b0f045..2ea13e37 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -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"); |