diff options
author | jantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-03 15:34:52 +0000 |
---|---|---|
committer | jantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-03 15:34:52 +0000 |
commit | f553583f36254123792d01b90b5c168575d882cf (patch) | |
tree | 69781454dbab22edd166fd5620d31b65d90456c5 /src/protocol/inspircd12.cpp | |
parent | b22091e8fa3e2eeb67a14f7ce56b8b91fb4b0059 (diff) |
Fix bug #1109. Anopes now replies with proper PONGs to rfc compliant PINGs .
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2529 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd12.cpp')
-rw-r--r-- | src/protocol/inspircd12.cpp | 7 |
1 files changed, 6 insertions, 1 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; } |