summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-21 17:55:27 -0500
committerAdam <Adam@anope.org>2013-01-21 17:55:27 -0500
commit678d27fdb74a3c73b696b6feffc00523f2c233b2 (patch)
tree5f3332116d93dc003ee7ff9e33f3548d6f8e4444 /src/channels.cpp
parent369ca89c2e0ee4b4944817bd30c06a55567b749f (diff)
Fix Channel::GetModes, we can never have a negative mode set on a channel so this check is unnecessary
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 5b487a347..fdf20facf 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -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;