diff options
author | Adam <Adam@anope.org> | 2010-11-14 17:34:17 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-11-14 17:34:17 -0500 |
commit | 4f8dfc2132e2c67bf8047cbba0a78ea22e870d28 (patch) | |
tree | b68a377caa1126de27d9c1b69b510cb0c9570515 /src/users.cpp | |
parent | 4415a779a3ff690e800198b27a16a80a630b1e3d (diff) |
Delete users and channels from the modestacker when they are destructed
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)) |