From: Art Cancro Date: Wed, 11 Feb 2009 01:46:19 +0000 (+0000) Subject: * XMPP sessions now honor the nologin flag. Resolves bug #421. X-Git-Tag: v7.86~1467 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=904b949012484d0650b12a71f4ed0130049d22eb;p=citadel.git * XMPP sessions now honor the nologin flag. Resolves bug #421. --- diff --git a/citadel/modules/jabber/xmpp_sasl_service.c b/citadel/modules/jabber/xmpp_sasl_service.c index 78eab97fc..6497f8101 100644 --- a/citadel/modules/jabber/xmpp_sasl_service.c +++ b/citadel/modules/jabber/xmpp_sasl_service.c @@ -118,7 +118,13 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) { if (CC->logged_in) logout(); /* Client may try to log in twice. Handle this. */ - if (xmpp_auth_plain(authstring) == 0) { + if (CC->nologin) { + cprintf(""); + cprintf(""); + cprintf(""); + } + + else if (xmpp_auth_plain(authstring) == 0) { cprintf(""); }