From 2956a2d7052c0fc72faad4e1ef1117be621fa423 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 May 2005 18:56:47 +0000 Subject: Empty but non-null string passed to is_uline returns true git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1320 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/commands.cpp b/src/commands.cpp index 02af034fb..8902386bb 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1681,6 +1681,10 @@ 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]; for (int i = 0; i < ConfValueEnum("uline",&config_f); i++) { -- cgit v1.2.3