From dd12a19c2c72cb738492adcda2673d862a6f9f13 Mon Sep 17 00:00:00 2001 From: jilles Date: Fri, 26 Jan 2007 10:52:11 -0800 Subject: [PATCH] [svn] Include real hostname in Closing Link message for unknown connections that have sent USER. This is helpful for k-lined users while not breaking server IP hiding. --- ChangeLog | 9 +++++++++ include/serno.h | 2 +- src/client.c | 6 ++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b128f658..cb1a2b6aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +jilles 2007/01/26 16:52:29 UTC (20070126-3165) + Log: + Rerun autoconf. + + + Changes: Modified: + +29 -29 trunk/configure (File Modified) + + nenolod 2007/01/25 07:36:23 UTC (20070125-3163) Log: - nick[user@host] -> nick!user@host in kill messages. based on jilles' change in 3.0 diff --git a/include/serno.h b/include/serno.h index f0246a82c..9213f5c0d 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070125-3163" +#define SERNO "20070126-3165" diff --git a/src/client.c b/src/client.c index eea542910..6279a5660 100644 --- a/src/client.c +++ b/src/client.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: client.c 1861 2006-08-26 23:21:42Z jilles $ + * $Id: client.c 3167 2007-01-26 18:52:11Z jilles $ */ #include "stdinc.h" #include "config.h" @@ -1422,7 +1422,9 @@ exit_unknown_client(struct Client *client_p, struct Client *source_p, struct Cli dlinkDelete(&source_p->localClient->tnode, &unknown_list); if(!IsIOError(source_p)) - sendto_one(source_p, "ERROR :Closing Link: 127.0.0.1 (%s)", comment); + sendto_one(source_p, "ERROR :Closing Link: %s (%s)", + source_p->user != NULL ? source_p->host : "127.0.0.1", + comment); close_connection(source_p);