1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 00:43:12 +02:00

Remove the permanent channel mode from channels that are dropped/expired/etc

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2663 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-11-24 01:19:12 +00:00
parent c3529b6129
commit 24f7ffcf18
+6
View File
@@ -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);