From 5f6f296cacbfd27efc2f5766e670e027d612e44e Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 9 Apr 2006 18:40:42 +0000 Subject: [PATCH] - Removed some odd code causing a 'my port is' message to appear in (f.e.) syslog, reported by rsc (#0002853). --- Changes | 2 ++ src/s_bsd.c | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Changes b/Changes index f8b6868be..2adb3a525 100644 --- a/Changes +++ b/Changes @@ -1096,3 +1096,5 @@ - Added minidump support for crashes to aid debugging a bit. - Added chained SSL certificates support, patch provided by justdave (#0002848). - Local opers may now use /TRACE (local only), suggested by GSF19 (#0002365). +- Removed some odd code causing a 'my port is' message to appear in (f.e.) syslog, reported + by rsc (#0002853). diff --git a/src/s_bsd.c b/src/s_bsd.c index b54508de2..5597643c2 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -453,17 +453,6 @@ int inetport(aClient *cptr, char *name, int port) return -1; } -#ifndef _WIN32 - if (cptr == &me) /* KLUDGE to get it work... */ - { - char buf[1024]; - - (void)ircsprintf(buf, rpl_str(RPL_MYPORTIS), me.name, "*", - ntohs(server.SIN_PORT)); - (void)write(0, buf, strlen(buf)); - } -#endif - #ifdef INET6 bcopy(server.sin6_addr.s6_addr, cptr->ip.s6_addr, IN6ADDRSZ); #else