Fix bug #120: !getip does not work

This commit is contained in:
Jan Vidar Krey 2010-04-05 14:21:40 +02:00
parent 8e579f4601
commit 5454ae279a
1 changed files with 1 additions and 1 deletions

View File

@ -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);