diff options
author | Adam <Adam@anope.org> | 2013-01-21 17:59:22 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-21 17:59:22 -0500 |
commit | 93472f84bd98def2cd96fb46c4f45607d1366635 (patch) | |
tree | a666bb0113b4998a7f5a5acb5f969317db670f80 /src/channels.cpp | |
parent | 678d27fdb74a3c73b696b6feffc00523f2c233b2 (diff) |
Revert "Fix Channel::GetModes, we can never have a negative mode set on a channel so this check is unnecessary"
This reverts commit 678d27fdb74a3c73b696b6feffc00523f2c233b2.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index fdf20facf..5b487a347 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -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; |