diff options
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 048a5fae7..9bf4883f9 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -177,22 +177,12 @@ void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long i /* XXX - these really belong in helperfuncs perhaps -- w00t */ bool is_uline(const char* server) { - char ServName[MAXBUF]; - if (!server) return false; - if (!(*server)) + if (!*server) return true; - for (int i = 0; i < Config->ConfValueEnum("uline",&Config->config_f); i++) - { - Config->ConfValue("uline","server",i,ServName,&Config->config_f); - if (!strcasecmp(server,ServName)) - { - return true; - } - } - return false; + return (find(Config->ulines.begin(),Config->ulines.end(),server) != Config->ulines.end()); } int operstrcmp(char* data,char* input) |