1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 10:46:38 +02:00

Fixed mlock with param modes if you change (but not unset) the mode

This commit is contained in:
Adam
2011-08-27 16:45:14 -04:00
parent 309dfa36e7
commit bb52530eb2
+1 -1
View File
@@ -329,7 +329,7 @@ void Channel::SetModeInternal(ChannelMode *cm, const Anope::string &param, bool
if (!ci)
return;
ModeLock *ml = ci->GetMLock(cm->Name, param);
ModeLock *ml = ci->GetMLock(cm->Name, cm->Type == MODE_PARAM ? "" : param);
if (ml)
{
if (ml->set && cm->Type == MODE_PARAM)