From 28dea7fd09112224a79dfe6b141497ed46b44988 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 19:07:56 +0000 Subject: 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 --- src/modules/m_chanprotect.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') 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); -- cgit v1.2.3