diff options
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index d325b40aa..8e9f4dfd5 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -416,19 +416,19 @@ long InspIRCd::Duration(const std::string &str) return total + subtotal; } -bool InspIRCd::ULine(const char* server) +bool InspIRCd::ULine(const char* sserver) { - if (!server) + if (!sserver) return false; - if (!*server) + if (!*sserver) return true; - return (Config->ulines.find(server) != Config->ulines.end()); + return (Config->ulines.find(sserver) != Config->ulines.end()); } -bool InspIRCd::SilentULine(const char* server) +bool InspIRCd::SilentULine(const char* sserver) { - std::map<irc::string,bool>::iterator n = Config->ulines.find(server); + std::map<irc::string,bool>::iterator n = Config->ulines.find(sserver); if (n != Config->ulines.end()) return n->second; else return false; |