From bed0c38419b46ff23b36f1edb7e5aca6a86c7c8e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Apr 2004 09:09:17 +0000 Subject: Fixes for nonblocking socket issues git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@593 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 158bbc3da..74785a167 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -877,6 +877,7 @@ bool CommonOnThisServer(userrec* u,const char* servername) { if (!strcasecmp(i->second->server,servername)) { + log(DEBUG,"%s is common to %s sharing with %s",i->second->nick,servername,u->nick); return true; } } @@ -885,7 +886,7 @@ bool CommonOnThisServer(userrec* u,const char* servername) } -void NetSendToCommon(userrec* u, chanrec* c, char* s) +void NetSendToCommon(userrec* u, char* s) { char buffer[MAXBUF]; snprintf(buffer,MAXBUF,"%s",s); @@ -4434,7 +4435,7 @@ void handle_privmsg(char **parameters, int pcnt, userrec *user) // if any users of this channel are on remote servers, broadcast the packet char buffer[MAXBUF]; snprintf(buffer,MAXBUF,"P %s %s :%s",user->nick,chan->name,parameters[1]); - NetSendToCommon(user,chan,buffer); + NetSendToCommon(user,buffer); } else { @@ -4518,7 +4519,7 @@ void handle_notice(char **parameters, int pcnt, userrec *user) // if any users of this channel are on remote servers, broadcast the packet char buffer[MAXBUF]; snprintf(buffer,MAXBUF,"V %s %s :%s",user->nick,chan->name,parameters[1]); - NetSendToCommon(user,chan,buffer); + NetSendToCommon(user,buffer); } else { @@ -6943,7 +6944,7 @@ int InspIRCd(void) } } - for (int x = 0; x != UDPportCount; x++) + for (int x = 0; x < UDPportCount; x++) { std::deque msgs; msgs.clear(); -- cgit v1.2.3