From 265fbc66d0c47ad519c9773abddd1b13db9ace92 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 1 Mar 2010 02:01:51 +0000 Subject: Make disallow insanity, to match the documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12576 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3