summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 18:56:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 18:56:47 +0000
commit2956a2d7052c0fc72faad4e1ef1117be621fa423 (patch)
treedf64a2016d8c2ae469760d8d5de3e2addb146112 /src
parent74618388a647fe19bea520c221b5c1fa86c62bca (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp4
1 files changed, 4 insertions, 0 deletions
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++)
{