1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 16:36:39 +02:00

Log out users from their groups when they disconnect, keeps us from storing invalid pointers in the nickcore user list

This commit is contained in:
Adam
2010-06-27 14:41:57 -04:00
parent 9269d20a70
commit 6e1fa85cbc
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -90,10 +90,12 @@ class CommandNSDrop : public Command
notice_lang(Config.s_NickServ, u, NICK_X_DROPPED, nick);
else
notice_lang(Config.s_NickServ, u, NICK_DROPPED);
if (my_nick)
delete [] my_nick;
}
}
if (my_nick)
delete [] my_nick;
return MOD_CONT;
}
+2
View File
@@ -201,6 +201,8 @@ User::~User()
{
Alog(LOG_DEBUG_2) << "User::~User() called";
this->Logout();
if (Config.LogUsers)
{
const char *srealname = normalizeBuffer(this->realname);