From a713654f9317ebebf86bdf9c295fce0780bd2a4b Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 3 Jan 2016 02:01:01 +0000 Subject: [PATCH 1/2] Fixed compilation without libotr --- src/event/server_events.c | 2 ++ 1 file changed, 2 insertions(+) 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); From 03f63a912ebec196987cbaadc040948e1ffb0a50 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 3 Jan 2016 02:20:17 +0000 Subject: [PATCH 2/2] Close all windows on /disconnect --- src/command/commands.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command/commands.c b/src/command/commands.c index 15b740e3..c58a1588 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -993,6 +993,7 @@ cmd_disconnect(ProfWin *window, const char *const command, gchar **args) chat_sessions_clear(); tlscerts_clear_current(); ui_disconnected(); + ui_close_all_wins(); #ifdef HAVE_LIBGPGME p_gpg_on_disconnect(); #endif