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/channels.cpp | |
parent | 4415a779a3ff690e800198b27a16a80a630b1e3d (diff) |
Delete users and channels from the modestacker when they are destructed
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 4ba9049a9..6e1e25f23 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -47,6 +47,8 @@ Channel::~Channel() { FOREACH_MOD(I_OnChannelDelete, OnChannelDelete(this)); + ModeManager::StackerDel(this); + Log(NULL, this, "destroy"); for (std::list<BanData *>::iterator it = this->bd.begin(), it_end = this->bd.end(); it != it_end; ++it) |