From 9ac5a288da2bc733e213cdc4017ac20e8bf5ce4d Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 24 Oct 2008 15:01:50 +0000 Subject: 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 --- src/modules/m_redirect.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3