about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/command/cmd_ac.c2
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");