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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -201,6 +201,8 @@ User::~User()
|
||||
{
|
||||
Alog(LOG_DEBUG_2) << "User::~User() called";
|
||||
|
||||
this->Logout();
|
||||
|
||||
if (Config.LogUsers)
|
||||
{
|
||||
const char *srealname = normalizeBuffer(this->realname);
|
||||
|
||||
Reference in New Issue
Block a user