diff options
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index a584f9372..a6cbd1cc8 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1507,11 +1507,12 @@ void handle_map(char **parameters, int pcnt, userrec *user) bool is_uline(const char* server) { - if (!server) - return false; - if (!(*server)) - return true; char ServName[MAXBUF]; + + /* fix, by w00t - per nenolod. I don't see how we can want '""' as a uline. */ + if (!server || !(*server)) + return false; + for (int i = 0; i < ConfValueEnum("uline",&config_f); i++) { ConfValue("uline","server",i,ServName,&config_f); |