diff options
author | James Booth <boothj5@gmail.com> | 2015-06-23 23:29:10 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-23 23:29:10 +0100 |
commit | 358e9d6af0677354fa70fa089124de07d8423eb7 (patch) | |
tree | 71554c57d40f5267307e0b815bd50be6b397400c /src/event | |
parent | 2d3537515d9b0dbba51265ed7819dd80b31a33d8 (diff) | |
download | profani-tty-358e9d6af0677354fa70fa089124de07d8423eb7.tar.gz |
Added /pgp setkey command
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 |