ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/pxys-hybrid/trunk/pxyservd/src/irc_parser.c
(Generate patch)

Comparing pxys-hybrid/trunk/pxyservd/src/irc_parser.c (file contents):
Revision 3406 by michael, Mon Apr 28 18:47:55 2014 UTC vs.
Revision 3407 by michael, Mon Apr 28 20:21:27 2014 UTC

# Line 71 | Line 71 | DEFINE_PARSEFUN(squit);
71   DEFINE_PARSEFUN(kill);
72   DEFINE_PARSEFUN(ping);
73   DEFINE_PARSEFUN(pong);
74 DEFINE_PARSEFUN(rping);
74   DEFINE_PARSEFUN(eb);
75   DEFINE_PARSEFUN(ea);
76   DEFINE_PARSEFUN(null);
# Line 129 | Line 128 | parser_dispatch(const char *tok)
128      case F4C('\0\0\0D'): return parse_kill;
129      case F4C('\0\0\0G'): return parse_ping;
130      case F4C('\0\0\0Z'): return parse_pong;
132    case F4C('\0\0IR'):  return parse_rping;
131      case F4C('\0\0BE'):  return parse_eb;
132      case F4C('\0\0AE'):  return parse_ea;
133      default:
# Line 376 | Line 374 | parse_pong(toktabptr ttab)
374    }
375  
376   static void
379 parse_rping(toktabptr ttab)
380  {
381  struct Server *sptr;
382  
383  if (ttab->size <= 6)
384    RET_BOGUS;
385  
386  sptr = irc_network_get_server(base64toint(ttab->tok[0]));
387  if (sptr != NULL)
388    send_raw("%s %s %s %s %s %s %s" CRLF, gMe.yy, TOK_RPONG,
389             sptr->name, ttab->tok[3], ttab->tok[4],
390             militime(ttab->tok[4], ttab->tok[5]), untokenize(ttab, 6));
391  }
392
393 static void
377   parse_eb(toktabptr ttab)
378    {
379    /* Only reply to EB from our direct downlink. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines