diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-09-03 14:13:21 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-09-15 15:01:16 +0200 |
commit | 2eb472ec539925158b7d75cf413c60c5c7b93d8e (patch) | |
tree | 2d78c25a0d4e77a3b4f90331c493fcaf6fc4a5cb /src/modules | |
parent | 3b5353a00bd545085be42c55fbbadd6a041d04f5 (diff) |
Remove redundant parameter.clear()s from mode handlers
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_redirect.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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; } } |