summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-03 14:13:21 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-15 15:01:16 +0200
commit2eb472ec539925158b7d75cf413c60c5c7b93d8e (patch)
tree2d78c25a0d4e77a3b4f90331c493fcaf6fc4a5cb /src
parent3b5353a00bd545085be42c55fbbadd6a041d04f5 (diff)
Remove redundant parameter.clear()s from mode handlers
Diffstat (limited to 'src')
-rw-r--r--src/listmode.cpp2
-rw-r--r--src/modules/m_redirect.cpp3
2 files changed, 0 insertions, 5 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 3c9183ff7..33578b738 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -156,7 +156,6 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std
{
/* List is full, give subclass a chance to send a custom message */
TellListTooLong(source, channel, parameter);
- parameter.clear();
return MODEACTION_DENY;
}
@@ -199,7 +198,6 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std
/* Tried to remove something that wasn't set */
TellNotSet(source, channel, parameter);
- parameter.clear();
return MODEACTION_DENY;
}
}
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index 69fc5e136..0ff2c6c9d 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -40,7 +40,6 @@ class Redirect : public ModeHandler
if (!ServerInstance->IsChannel(parameter))
{
source->WriteNumeric(403, "%s %s :Invalid channel name", source->nick.c_str(), parameter.c_str());
- parameter.clear();
return MODEACTION_DENY;
}
}
@@ -51,13 +50,11 @@ class Redirect : public ModeHandler
if (!c)
{
source->WriteNumeric(690, "%s :Target channel %s must exist to be set as a redirect.",source->nick.c_str(),parameter.c_str());
- parameter.clear();
return MODEACTION_DENY;
}
else if (c->GetPrefixValue(source) < OP_VALUE)
{
source->WriteNumeric(690, "%s :You must be opped on %s to set it as a redirect.",source->nick.c_str(),parameter.c_str());
- parameter.clear();
return MODEACTION_DENY;
}
}