diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 4d1e1cf7d..d70558940 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -72,6 +72,12 @@ ChannelInfo::~ChannelInfo() FOREACH_MOD(I_OnDelChan, OnDelChan(this)); + if (this->c && this->c->HasMode(CMODE_PERM)) + { + this->c->RemoveMode(CMODE_PERM); + ircdproto->SendMode(whosends(this), this->name, "-%c", ModeManager::FindChannelModeByName(CMODE_PERM)->ModeChar); + } + if (debug) alog("debug: Deleting channel %s", this->name); |