$Log$
+ Revision 590.41 2002/01/06 08:54:58 error
+ * user_ops.c: fixed become_session() when calling EVT_LOGOUT session hooks
+
Revision 590.40 2002/01/05 22:31:22 ajc
* Removed some protocol commands and writeups that are no longer necessary
* Began some of the framework for the Global Address Book
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
*/
void logout(struct CitContext *who)
{
+ struct CitContext *saved_cc = NULL;
+
who->logged_in = 0;
/*
}
/* Do modular stuff... */
+ if (who != CC)
+ saved_cc = CC;
become_session(who);
PerformSessionHooks(EVT_LOGOUT);
- become_session(NULL);
+ become_session(saved_cc);
}
#ifdef ENABLE_CHKPWD