summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 19:13:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 19:13:22 +0000
commit1acc89351c396fbee1bb8e196da412c88b0e9302 (patch)
tree3a998ec3fd93e3015c0fbac9bfd7ee4b7cbd9e40 /src
parentd3d06093ddee93f5b3c2101fc70796b4def45109 (diff)
Dont check APrefix both times :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9332 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanprotect.cpp2
1 files changed, 1 insertions, 1 deletions
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);