summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-05 23:53:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-05 23:53:01 +0000
commit821a5bca883ad8c06cb27963acf8861d9ef1031e (patch)
tree95f0f8a9de79ea033b1bfd7c111474d69014fda1 /src/command_parse.cpp
parent2248866b4b3c260ae351607700d5fb0abf8c458b (diff)
Fix for bug #199 (Feature request) submitted by owine. Ended up adding an extra parameter to <uline> for this.
It turned into a biggie :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6742 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp10
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)