1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 10:36:38 +02:00

Revert "Fix Channel::GetModes, we can never have a negative mode set on a channel so this check is unnecessary"

This reverts commit 678d27fdb7.
This commit is contained in:
Adam
2013-01-21 17:59:22 -05:00
parent 678d27fdb7
commit 93472f84bd
+6 -1
View File
@@ -826,7 +826,12 @@ Anope::string Channel::GetModes(bool complete, bool plus)
res += cm->mchar;
if (complete && !it->second.empty())
params += " " + it->second;
{
ChannelModeParam *cmp = anope_dynamic_static_cast<ChannelModeParam *>(cm);
if (plus || !cmp->minus_no_arg)
params += " " + it->second;
}
}
return res + params;