]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/send.c
Remote d:lines implementation (based on ircd-seven's r230 by spb, Stephen Bennett...
[irc/rqf/shadowircd.git] / src / send.c
index 68d6ee6be796c383e1f1e326b1e4193e1959f50a..a3154c3a0b0387262c9894b0ad50c4e679d334ce 100644 (file)
 #include "class.h"
 #include "client.h"
 #include "common.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "s_serv.h"
-#include "sprintf_irc.h"
 #include "s_conf.h"
 #include "s_newconf.h"
 #include "logger.h"
@@ -149,12 +148,12 @@ send_queued(struct Client *to)
        if(IsIOError(to))
                return;
 
-       /* Something wants us to not send anything currently */\r
-       /* if(IsCork(to))\r
-               return; */\r
-\r
-       /* try to flush later when the write event resets this */\r
-       if(IsFlush(to))\r
+       /* Something wants us to not send anything currently */
+       /* if(IsCork(to))
+               return; */
+
+       /* try to flush later when the write event resets this */
+       if(IsFlush(to))
                return;
 
 #ifdef USE_IODEBUG_HOOKS
@@ -204,25 +203,25 @@ send_queued(struct Client *to)
                }
        }
 
-       if(rb_linebuf_len(&to->localClient->buf_sendq))\r
-       {\r
-               SetFlush(to);\r
-               rb_setselect(to->localClient->F, RB_SELECT_WRITE,\r
-                              send_queued_write, to);\r
-       }\r
-       else\r
+       if(rb_linebuf_len(&to->localClient->buf_sendq))
+       {
+               SetFlush(to);
+               rb_setselect(to->localClient->F, RB_SELECT_WRITE,
+                              send_queued_write, to);
+       }
+       else
                ClearFlush(to);
 }
 
-void\r
-send_pop_queue(struct Client *to)\r
-{\r
-       if(to->from != NULL)\r
-               to = to->from;\r
-       if(!MyConnect(to) || IsIOError(to))\r
-               return;\r
-       if(rb_linebuf_len(&to->localClient->buf_sendq) > 0)\r
-               send_queued(to);\r
+void
+send_pop_queue(struct Client *to)
+{
+       if(to->from != NULL)
+               to = to->from;
+       if(!MyConnect(to) || IsIOError(to))
+               return;
+       if(rb_linebuf_len(&to->localClient->buf_sendq) > 0)
+               send_queued(to);
 }
 
 /* send_queued_write()