All pastes #955758 Raw Edit

Something

public c v1 · immutable
#955758 ·published 2008-03-24 20:45 UTC
rendered paste body
/* Queues outgoing messages so there's no flooding. */static void queue_server(int which, char *buf, int len){  /* Don't even BOTHER if there's no server online. */  if (serv < 0)    return;  remove_crlf(&buf);  buf[510] = 0;  len = strlen(buf);  /* No queue for PING and PONG - drummer */  if (!egg_strncasecmp(buf, "PING", 4) || !egg_strncasecmp(buf, "PONG", 4)) {    if (buf[1] == 'I' || buf[1] == 'i')      lastpingtime = now;  }  if (raw_log)    putlog(LOG_SRVOUT, "*", "[m->] %s", buf);  write_to_server(buf, len);}