1
0
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:
Adam
2010-11-14 17:34:17 -05:00
parent 4415a779a3
commit 4f8dfc2132
4 changed files with 25 additions and 1 deletions
+3 -1
View File
@@ -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))