From 5454ae279a725d362f83376e741eead4ca30f68a Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 5 Apr 2010 14:21:40 +0200 Subject: [PATCH] Fix bug #120: !getip does not work --- src/core/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/commands.c b/src/core/commands.c index f19f7f6..fa7ea23 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -339,7 +339,7 @@ static int command_getip(struct hub_info* hub, struct hub_user* user, struct hub char* nick = list_get_first(cmd->args); struct hub_user* target; - if (!nick); + if (!nick) return -1; // FIXME: bad syntax/OOM target = uman_get_user_by_nick(hub, nick);