Module: ngircd.git Branch: master Commit: 864015fa3ff42a026b90e39f73fb9d5f6eaab826 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=86401...
Author: Alexander Barton alex@barton.de Date: Tue Aug 28 22:09:06 2012 +0200
NoticeAuth: make sure messages are flushed immediately
---
src/ngircd/conn.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index fd17597..8fd162b 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -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