diff options
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/inspircd12.cpp | 7 | ||||
| -rw-r--r-- | src/protocol/ratbox.c | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 72a64770f..8140d73a8 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -951,7 +951,12 @@ endnick: /* Events */ int anope_event_ping(const char *source, int ac, const char **av) { - ircdproto->SendPong(TS6SID, av[0]); + if (ac == 1) + ircdproto->SendPong(NULL, av[0]); + + if (ac == 2) + ircdproto->SendPong(av[1], av[0]); + return MOD_CONT; } diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 33eb88570..58efa0cc2 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -648,12 +648,6 @@ class RatboxProto : public IRCDTS6Proto else send_cmd(bi->uid, "QUIT"); } - /* PONG */ - void SendPong(const char *servname, const char *who) - { - send_cmd(TS6SID, "PONG %s", who); - } - /* INVITE */ void SendInvite(BotInfo *source, const char *chan, const char *nick) { |
