mirror of
https://github.com/anope/anope.git
synced 2026-06-25 20:16:36 +02:00
Delete users and channels from the modestacker when they are destructed
This commit is contained in:
+3
-1
@@ -188,10 +188,12 @@ User::~User()
|
||||
|
||||
Log(this, "disconnect") << "(" << this->realname << ") " << "disconnected from the network (" << this->server->GetName() << ")";
|
||||
|
||||
this->Logout();
|
||||
|
||||
FOREACH_MOD(I_OnUserLogoff, OnUserLogoff(this));
|
||||
|
||||
ModeManager::StackerDel(this);
|
||||
this->Logout();
|
||||
|
||||
--usercnt;
|
||||
|
||||
if (is_oper(this))
|
||||
|
||||
Reference in New Issue
Block a user