From 358e9d6af0677354fa70fa089124de07d8423eb7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 23 Jun 2015 23:29:10 +0100 Subject: Added /pgp setkey command --- src/event/server_events.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/event') 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 -- cgit 1.4.1-2-gfad0