diff options
| author | Peter Powell <petpow@saberuk.com> | 2015-07-14 14:37:42 +0100 |
|---|---|---|
| committer | Peter Powell <petpow@saberuk.com> | 2015-07-14 14:37:42 +0100 |
| commit | d118cd74b6ff342b978b493d56f9306028e364cf (patch) | |
| tree | 38f58c18664f378a3f6cacfb4f0333828946b967 /src | |
| parent | 571b1a8b83bee56a75728d44d2586a816401d434 (diff) | |
| download | ngircd-d118cd74b6ff342b978b493d56f9306028e364cf.tar.gz ngircd-d118cd74b6ff342b978b493d56f9306028e364cf.zip | |
Use "NOTICE *" before registration instead of "NOTICE AUTH".
AUTH is a valid nickname so sending notices to it is probably not a good idea. Use * as the target instead as done with numerics when the nick is not available. This mimics the behaviour in Charybdis, IRCD-Hybrid, InspIRCd 2.2, Plexus 4, etc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.h | 2 | ||||
| -rw-r--r-- | src/ngircd/conn.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h index aa80b8dd..0d5c5669 100644 --- a/src/ngircd/conf.h +++ b/src/ngircd/conf.h @@ -194,7 +194,7 @@ GLOBAL bool Conf_Ident; /** Enable "more privacy" mode and "censor" some user-related information */ GLOBAL bool Conf_MorePrivacy; -/** Enable NOTICE AUTH messages on connect */ +/** Enable "NOTICE *" messages on connect */ GLOBAL bool Conf_NoticeAuth; /** Enable all usage of PAM, even when compiled with support for it */ diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 62561544..daf496b4 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -1488,15 +1488,15 @@ Conn_StartLogin(CONN_ID Idx) #endif if (Conf_NoticeAuth) { - /* Send "NOTICE AUTH" messages to the client */ + /* Send "NOTICE *" messages to the client */ #ifdef IDENTAUTH if (Conf_Ident) (void)Conn_WriteStr(Idx, - "NOTICE AUTH :*** Looking up your hostname and checking ident"); + "NOTICE * :*** Looking up your hostname and checking ident"); else #endif (void)Conn_WriteStr(Idx, - "NOTICE AUTH :*** Looking up your hostname"); + "NOTICE * :*** Looking up your hostname"); /* Send buffered data to the client, but break on errors * because Handle_Write() would have closed the connection * again in this case! */ @@ -2267,7 +2267,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) Client_SetHostname(c, readbuf); if (Conf_NoticeAuth) (void)Conn_WriteStr(i, - "NOTICE AUTH :*** Found your hostname: %s", + "NOTICE * :*** Found your hostname: %s", My_Connections[i].host); #ifdef IDENTAUTH ++identptr; @@ -2293,7 +2293,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) } if (Conf_NoticeAuth) { (void)Conn_WriteStr(i, - "NOTICE AUTH :*** Got %sident response%s%s", + "NOTICE * :*** Got %sident response%s%s", *ptr ? "invalid " : "", *ptr ? "" : ": ", *ptr ? "" : identptr); @@ -2302,7 +2302,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i); if (Conf_NoticeAuth) (void)Conn_WriteStr(i, - "NOTICE AUTH :*** No ident response"); + "NOTICE * :*** No ident response"); } #endif |