mirror of
https://github.com/anope/anope.git
synced 2026-06-25 19:16:37 +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:
@@ -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