diff options
author | James Booth <boothj5@gmail.com> | 2016-01-05 01:30:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-05 01:30:32 +0000 |
commit | e1e0fda8b307270045a744f1325e8d88032f65b9 (patch) | |
tree | 97350cd39b427724931dfe6c78187c4db3a37e65 /src | |
parent | 8e9bf083895ba7101115594a39dace62a59ab28f (diff) | |
download | profani-tty-e1e0fda8b307270045a744f1325e8d88032f65b9.tar.gz |
Call UI disconnect functions before disconnecting with /disconnect
fixes #703
Diffstat (limited to 'src')
-rw-r--r-- | src/event/client_events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c index b2efd491..94bf6e8d 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -73,13 +73,13 @@ cl_ev_disconnect(void) const char *jid = jabber_get_fulljid(); cons_show("%s logged out successfully.", jid); + ui_disconnected(); + ui_close_all_wins(); jabber_disconnect(); roster_clear(); muc_invites_clear(); chat_sessions_clear(); tlscerts_clear_current(); - ui_disconnected(); - ui_close_all_wins(); #ifdef HAVE_LIBGPGME p_gpg_on_disconnect(); #endif |