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

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

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