From 821a5bca883ad8c06cb27963acf8861d9ef1031e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 5 Apr 2007 23:53:01 +0000 Subject: Fix for bug #199 (Feature request) submitted by owine. Ended up adding an extra parameter to for this. It turned into a biggie :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6742 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 71fce09fd..a59d6db62 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -31,7 +31,15 @@ bool InspIRCd::ULine(const char* server) if (!*server) return true; - return (find(Config->ulines.begin(),Config->ulines.end(),server) != Config->ulines.end()); + return (Config->ulines.find(server) != Config->ulines.end()); +} + +bool InspIRCd::SilentULine(const char* server) +{ + std::map::iterator n = Config->ulines.find(server); + if (n != Config->ulines.end()) + return n->second; + else return false; } int InspIRCd::OperPassCompare(const char* data,const char* input, int tagnumber) -- cgit v1.2.3