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:
+1
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user