Fixed getip to return the ip address of the target user, not self.

This commit is contained in:
Jan Vidar Krey 2010-04-05 16:35:55 +02:00
parent 8815118fde
commit 58630fde08
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ static int command_getip(struct hub_info* hub, struct hub_user* user, struct hub
if (!target)
return command_status_user_not_found(hub, user, cmd, nick);
snprintf(tmp, 128, "%s has address \"%s\"", nick, user_get_address(user));
snprintf(tmp, 128, "%s has address \"%s\"", nick, user_get_address(target));
return command_status(hub, user, cmd, tmp);
}