From 4f8dfc2132e2c67bf8047cbba0a78ea22e870d28 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Nov 2010 17:34:17 -0500 Subject: Delete users and channels from the modestacker when they are destructed --- src/users.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') 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)) -- cgit