diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 004e743b..ff0263cb 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -63,6 +63,10 @@ sv_ev_login_account_success(char *account_name) otr_on_connect(account); #endif +#ifdef HAVE_LIBGPGME + p_gpg_on_connect(account->jid); +#endif + ui_handle_login_account_success(account); // attempt to rejoin rooms with passwords @@ -97,6 +101,9 @@ sv_ev_lost_connection(void) muc_invites_clear(); chat_sessions_clear(); ui_disconnected(); +#ifdef HAVE_LIBGPGME + p_gpg_on_disconnect(); +#endif } void |