#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"
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
}
}
- 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()