about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-06-29 16:29:53 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-06-29 16:29:53 +0200
commit3afd854dc862696c4842b2ed93efcad44d617910 (patch)
tree9deef19ce1a13f0e200ff79e662b46c325d5a9a5 /src/command/cmd_funcs.c
parent2f4b1734e945b27d54da1cf7cdd0226bd06f07d9 (diff)
downloadprofani-tty-3afd854dc862696c4842b2ed93efcad44d617910.tar.gz
cmd_funcs: fix omemo case
Small mistake introduced in b7f959bab4e8ed13e8b5d638180420e497844a26.
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 6213ba88..735e197b 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -2192,7 +2192,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
         is_otr_secure = otr_is_secure(barejid);
 #endif // HAVE_LIBOTR
 
-
+#ifdef HAVE_OMEMO
         if (omemo_automatic_start(barejid) && is_otr_secure) {
             win_println(window, THEME_DEFAULT, "!", "Chat could be either OMEMO or OTR encrypted. Use '/omemo start %s' or '/otr start %s' to start a session.", usr, usr);
             return TRUE;
@@ -2200,6 +2200,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
             omemo_start_session(barejid);
             chatwin->is_omemo = TRUE;
         }
+#endif // HAVE_OMEMO
 
         if (msg) {
             cl_ev_send_msg(chatwin, msg, NULL);