From 1acc89351c396fbee1bb8e196da412c88b0e9302 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 19:13:22 +0000 Subject: Dont check APrefix both times :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9332 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 583bde692..e85744d06 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -362,7 +362,7 @@ class ModuleChanProtect : public Module if (cp && ServerInstance->Modes->FindPrefix(APrefix) == cp) throw CoreException("Looks like the +a prefix you picked for m_chanprotect is already in use. Pick another."); - if (cf && ServerInstance->Modes->FindPrefix(APrefix) == cf) + if (cf && ServerInstance->Modes->FindPrefix(QPrefix) == cf) throw CoreException("Looks like the +q prefix you picked for m_chanprotect is already in use. Pick another."); DeprivSelf = Conf.ReadFlag("options","deprotectself",0); -- cgit v1.2.3