From 50ef6d1e9825230b99bfb42a7f9d4826bc61d8e7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 May 2005 00:39:02 +0000 Subject: Fixed remote kills to display the correct source (spotted while talking to aquanight) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1325 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/commands.cpp b/src/commands.cpp index 8902386bb..fb8b3072a 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -2196,9 +2196,9 @@ void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* if ((user) && (u)) { - WriteTo(user, u, "KILL %s :%s!%s!%s!%s (%s)", u->nick, source->name, ServerName, user->dhost,user->nick,reason); - WriteOpers("*** Remote kill from %s by %s: %s!%s@%s (%s)",source->name,user->nick,u->nick,u->ident,u->host,reason); - snprintf(kreason,MAXBUF,"[%s] Killed (From: '%s' (%s))",source->name,user->nick,reason); + WriteTo(user, u, "KILL %s :%s!%s!%s!%s (%s)", u->nick, tcp_host, ServerName, user->dhost,user->nick,reason); + WriteOpers("*** Remote kill from %s by %s: %s!%s@%s (%s)",tcp_host,user->nick,u->nick,u->ident,u->host,reason); + snprintf(kreason,MAXBUF,"[%s] Killed (From: '%s' (%s))",tcp_host,user->nick,reason); kill_link(u,kreason); } } -- cgit v1.2.3