about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c2
-rw-r--r--src/profanity.c2
-rw-r--r--src/server_events.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 69e80414..d7ce2742 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -2391,7 +2391,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
         return TRUE;
     }
 #else
-    cons_show("This version of Profanity has not been build with OTR support enabled");
+    cons_show("This version of Profanity has not been built with OTR support enabled");
     return TRUE;
 #endif
 }
diff --git a/src/profanity.c b/src/profanity.c
index b4149d3a..049d4bc4 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -44,7 +44,9 @@
 #include "roster_list.h"
 #include "log.h"
 #include "muc.h"
+#ifdef HAVE_LIBOTR
 #include "otr.h"
+#endif
 #include "resource.h"
 #include "ui/ui.h"
 #include "xmpp/xmpp.h"
diff --git a/src/server_events.c b/src/server_events.c
index 5e478a51..792415be 100644
--- a/src/server_events.c
+++ b/src/server_events.c
@@ -28,7 +28,9 @@
 #include "config/preferences.h"
 #include "roster_list.h"
 #include "ui/ui.h"
+#ifdef HAVE_LIBOTR
 #include "otr.h"
+#endif
 
 void
 handle_error_message(const char *from, const char *err_msg)
@@ -49,7 +51,9 @@ void
 handle_login_account_success(char *account_name)
 {
     ProfAccount *account = accounts_get_account(account_name);
+#ifdef HAVE_LIBOTR
     otr_on_connect(account);
+#endif
     resource_presence_t resource_presence = accounts_get_login_presence(account->name);
     contact_presence_t contact_presence = contact_presence_from_resource_presence(resource_presence);
     cons_show_login_success(account);