X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fserv_xmpp.c;h=067faa0a1997ba915c5b5c6440d3f40c127cfb39;hb=cd92e340089d4d768c0c1a02af1dadd7dc19be08;hp=a4a5f28ecc6375e84f32b17b7ee693a08e6824bf;hpb=4e472679897e1f11ba8136ec4e31b3b92baf47e9;p=citadel.git diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index a4a5f28ec..067faa0a1 100644 --- a/citadel/modules/xmpp/serv_xmpp.c +++ b/citadel/modules/xmpp/serv_xmpp.c @@ -510,7 +510,11 @@ void xmpp_async_loop(void) { */ void xmpp_login_hook(void) { xmpp_queue_event(XMPP_EVT_LOGIN, CC->cs_inet_email); - xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(); + + /* only do the protocol stuff if this is an XMPP session */ + if (CC->h_command_function == xmpp_command_loop) { + xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(); + } }