From 58630fde083ca8f8292fa38d49663134093b1084 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 5 Apr 2010 16:35:55 +0200 Subject: [PATCH] Fixed getip to return the ip address of the target user, not self. --- 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 fa7ea23..44a40ce 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -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); }