Cleaned a few warnings about deprecated functions.
[citadel.git] / citadel / modules / jabber / xmpp_sasl_service.c
index f015236e0146528097d3174688c33372b5ab2a6e..1391512c485f3db0d570ea415921360d63179043 100644 (file)
@@ -130,7 +130,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
                return;
        }
 
-        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) CtdlUserLogout();  /* Client may try to log in twice.  Handle this. */
 
        if (CC->nologin) {
                cprintf("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
@@ -157,7 +157,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
 void jabber_non_sasl_authenticate(char *iq_id, char *username, char *password, char *resource) {
        int result;
 
-        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) CtdlUserLogout();  /* Client may try to log in twice.  Handle this. */
 
        result = CtdlLoginExistingUser(NULL, username);
        if (result == login_ok) {