about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-03 02:01:01 +0000
committerJames Booth <boothj5@gmail.com>2016-01-03 02:01:01 +0000
commita713654f9317ebebf86bdf9c295fce0780bd2a4b (patch)
tree41801e41689e0050bbf06921cf524e27dcc7373e
parent4f35b114718880b5ca0449a8e4cc7c81dcae22da (diff)
downloadprofani-tty-a713654f9317ebebf86bdf9c295fce0780bd2a4b.tar.gz
Fixed compilation without libotr
-rw-r--r--src/event/server_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 8fc32d4e..53904ca9 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -545,11 +545,13 @@ sv_ev_contact_offline(char *barejid, char *resource, char *status)
         ui_contact_offline(barejid, resource, status);
     }
 
+#ifdef HAVE_LIBOTR
     ProfChatWin *chatwin = wins_get_chat(barejid);
     if (chatwin && otr_is_secure(barejid)) {
         chatwin_otr_unsecured(chatwin);
         otr_end_session(chatwin->barejid);
     }
+#endif
 
     rosterwin_roster();
     chat_session_remove(barejid);