diff options
-rw-r--r-- | src/listmode.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_redirect.cpp | 3 |
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; } } |