summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 19:07:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 19:07:56 +0000
commit28dea7fd09112224a79dfe6b141497ed46b44988 (patch)
tree5c6960ad43a22afff31a0210588de0293dfc8ae7 /src/modules
parent369aef56c68aecccac7c3c30108fd958cfdc62f0 (diff)
Throw exception if both the prefix chars are defined and the same (thaks danieldg)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9330 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chanprotect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 0cc4fe8d7..768c7eb8c 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -356,6 +356,9 @@ class ModuleChanProtect : public Module
std::string apre = Conf.ReadValue("options", "aprefix", 0);
APrefix = apre.empty() ? 0 : apre[0];
+ if ((APrefix && QPrefix) && APrefix == QPrefix)
+ throw CoreException("What the smeg, why are both your +q and +a prefixes the same character?");
+
DeprivSelf = Conf.ReadFlag("options","deprotectself",0);
DeprivOthers = Conf.ReadFlag("options","deprotectothers",0);