Commits

jilles  committed 277e336

[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.

  • Participants
  • Parent commits e58ff1e

Comments (0)

Files changed (3)

+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

File include/serno.h

-#define SERNO "20070125-3163"
+#define SERNO "20070126-3165"

File src/client.c

  *  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"
 	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);