]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Enhance "NOTICE AUTH": show hostname and IDENT reply
authorAlexander Barton <alex@barton.de>
Mon, 27 Aug 2012 20:05:55 +0000 (22:05 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 27 Aug 2012 20:05:55 +0000 (22:05 +0200)
src/ngircd/conn.c

index e57aa2423a3eea2bbdacea0500fe9e3452ddb0bf..fd175971a16d9b48a546efa94df84dc8ff39ebc5 100644 (file)
@@ -2257,7 +2257,8 @@ 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");
+                                       "NOTICE AUTH :*** Found your hostname: %s",
+                                       My_Connections[i].host);
 #ifdef IDENTAUTH
                ++identptr;
                if (*identptr) {
@@ -2282,8 +2283,10 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
                        }
                        if (Conf_NoticeAuth) {
                                (void)Conn_WriteStr(i,
-                                       "NOTICE AUTH :*** Got %sident response",
-                                       *ptr ? "invalid " : "");
+                                       "NOTICE AUTH :*** Got %sident response%s%s",
+                                       *ptr ? "invalid " : "",
+                                       *ptr ? "" : ": ",
+                                       *ptr ? "" : identptr);
                        }
                } else {
                        Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);