summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-02 23:41:38 -0500
committerAdam <Adam@anope.org>2013-03-02 23:42:00 -0500
commitae4421b8a2857186a0b0886c395839607507e4f2 (patch)
treee5df2a45dad0b28f22636318b622797e663007b6 /src/regchannel.cpp
parent2d309da0f62724f8b775aacb9ab0e28d7977ccd2 (diff)
Unset founder/successors when channels are deleted
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 76e2dbded..acfe5cf91 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -373,6 +373,9 @@ ChannelInfo::~ChannelInfo()
RegisteredChannelList->erase(this->name);
+ this->SetFounder(NULL);
+ this->SetSuccessor(NULL);
+
this->ClearAccess();
this->ClearAkick();
this->ClearBadWords();