summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-01 02:01:51 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-01 02:01:51 +0000
commit265fbc66d0c47ad519c9773abddd1b13db9ace92 (patch)
tree19bda72d4a6dc6b71f07a0def0814ec7846a827f
parent7906b8273dedc41659495df3cc4e0b3dd5d516c9 (diff)
Make <insane blah="no"> disallow insanity, to match the documentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12576 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index b595a4b46..c68c63cc5 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -25,7 +25,7 @@ bool InspIRCd::HostMatchesEveryone(const std::string &mask, User* user)
ConfigTag* insane = Config->ConfValue("insane");
- if (!insane || !insane->getBool("hostmasks"))
+ if (insane->getBool("hostmasks"))
return false;
float itrigger = insane->getFloat("trigger", 95.5);
@@ -57,7 +57,7 @@ bool InspIRCd::IPMatchesEveryone(const std::string &ip, User* user)
ConfigTag* insane = Config->ConfValue("insane");
- if (!insane || !insane->getBool("ipmasks"))
+ if (insane->getBool("ipmasks"))
return false;
float itrigger = insane->getFloat("trigger", 95.5);
@@ -86,7 +86,7 @@ bool InspIRCd::NickMatchesEveryone(const std::string &nick, User* user)
ConfigTag* insane = Config->ConfValue("insane");
- if (!insane || !insane->getBool("nickmasks"))
+ if (insane->getBool("nickmasks"))
return false;
float itrigger = insane->getFloat("trigger", 95.5);