]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Fix bug #509 reported by Casey: bans were not applied on non-opped users (1.2 only)
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 583bde6926a9a2d903dffb4872531a0755f6aa04..e85744d06a242ebca6bbb31a9207e309ec96057c 100644 (file)
@@ -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);