NoticeAuth: make sure messages are flushed immediately
authorAlexander Barton <alex@barton.de>
Tue, 28 Aug 2012 20:09:06 +0000 (22:09 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 28 Aug 2012 20:09:06 +0000 (22:09 +0200)
src/ngircd/conn.c

index fd175971a16d9b48a546efa94df84dc8ff39ebc5..8fd162b7122eee89c37ca319e8d2cafb71ebb16a 100644 (file)
@@ -1508,6 +1508,7 @@ New_Connection(int Sock)
 #endif
                                (void)Conn_WriteStr(new_sock,
                                        "NOTICE AUTH :*** Looking up your hostname");
+                       (void)Handle_Write(new_sock);
                }
                Resolve_Addr(&My_Connections[new_sock].proc_stat, &new_addr,
                             identsock, cb_Read_Resolver_Result);
@@ -2295,6 +2296,10 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
                                        "NOTICE AUTH :*** No ident response");
                }
 #endif
+
+               if (Conf_NoticeAuth)
+                       (void)Handle_Write(i);
+
                Class_HandleServerBans(c);
        }
 #ifdef DEBUG