]> arthur.barton.de Git - ngircd-alex.git/commitdiff
- Client wird nun via NOTICEs ueber Resolver-Status informiert.
authorAlexander Barton <alex@barton.de>
Wed, 9 Oct 2002 13:34:19 +0000 (13:34 +0000)
committerAlexander Barton <alex@barton.de>
Wed, 9 Oct 2002 13:34:19 +0000 (13:34 +0000)
src/ngircd/conn.c

index 9bfb5f1e3f1ac85f6fa7676dc8cbf677c9d6e72b..da7cc63b56fda202bc8166a2b24ae33a32da7c48 100644 (file)
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.c,v 1.76 2002/10/09 13:15:08 alex Exp $
+ * $Id: conn.c,v 1.77 2002/10/09 13:34:19 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  */
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  */
@@ -739,6 +739,7 @@ New_Connection( INT Sock )
        if( s )
        {
                /* Sub-Prozess wurde asyncron gestartet */
        if( s )
        {
                /* Sub-Prozess wurde asyncron gestartet */
+               Conn_WriteStr( idx, "NOTICE AUTH :%sLooking up your hostname ...", NOTICE_TXTPREFIX );
                My_Connections[idx].res_stat = s;
        }
        else
                My_Connections[idx].res_stat = s;
        }
        else
@@ -1187,6 +1188,8 @@ Read_Resolver_Result( INT r_fd )
                assert( c != NULL );
                strcpy( My_Connections[i].host, result );
                Client_SetHostname( c, result );
                assert( c != NULL );
                strcpy( My_Connections[i].host, result );
                Client_SetHostname( c, result );
+
+               Conn_WriteStr( i, "NOTICE AUTH :%sGot your hostname.", NOTICE_TXTPREFIX );
        }
        else
        {
        }
        else
        {