aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-06-13 19:00:01 +0200
committerGravatar attilamolnar2013-06-13 19:00:01 +0200
commit95593de52c9b89dd3dae8d79a2c76efc81d9d353 (patch)
treec99c8b3172b299a7d520faf7b5e69d0e3196aa05 /src/channels.cpp
parentRemove TR_END, remove TRANSLATEx() from commands that do not need it (diff)
downloadinspircd++-95593de52c9b89dd3dae8d79a2c76efc81d9d353.tar.gz
inspircd++-95593de52c9b89dd3dae8d79a2c76efc81d9d353.tar.bz2
inspircd++-95593de52c9b89dd3dae8d79a2c76efc81d9d353.zip
Call Channel::SetModeParam() from the mode parser when needed instead of requiring mode handlers to do it
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 0d43bc802..b8629bf2c 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -56,12 +56,9 @@ void Channel::SetMode(ModeHandler* mh, bool on)
void Channel::SetModeParam(char mode, const std::string& parameter)
{
- CustomModeList::iterator n = custom_mode_params.find(mode);
- // always erase, even if changing, so that the map gets the new value
- if (n != custom_mode_params.end())
- custom_mode_params.erase(n);
if (parameter.empty())
{
+ custom_mode_params.erase(mode);
modes[mode-65] = false;
}
else