diff options
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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<irc::string,bool>::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) |