diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_redirect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index 63ad7ee7e..27273214a 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -50,14 +50,14 @@ class Redirect : public ModeHandler } c = ServerInstance->FindChan(parameter); - if (!c) + if (!c && !IS_OPER(source)) { 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; } - if (c->GetStatus(source) < STATUS_OP && !IS_OPER(source)) + if (c && c->GetStatus(source) < STATUS_OP && !IS_OPER(source)) { 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(); |