diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 12502efae..9aa67b174 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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)) |