diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 01:56:01 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 01:56:01 +0000 |
commit | 307feb8bd4675e159063e957c020e02bb33c0093 (patch) | |
tree | 68a6242428843cb3ebdae7bfde90fee958e6af5a | |
parent | 9d4328afade1f121cfb57368d103f5560f38f8dd (diff) |
Small fault-- is_uline() returned true for '' - not a good thing, I'd assume.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1985 e03df62e-2008-0410-955e-edbf42e46eb7
-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); |