diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-24 15:01:50 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-24 15:01:50 +0000 |
commit | 9ac5a288da2bc733e213cdc4017ac20e8bf5ce4d (patch) | |
tree | f2c9eb1cf03052532704cde2b73be84b27088815 | |
parent | 7e7cdc4f2f04225369dd4a2bf092cc9a03245c49 (diff) |
Consistancy: Allow opers to +L to a nonexistant channel, as we allow opers to bypass ops restriction.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10700 e03df62e-2008-0410-955e-edbf42e46eb7
-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(); |