1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 02:26:38 +02:00

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
This commit is contained in:
jantje_85
2009-10-03 15:34:52 +00:00
parent b22091e8fa
commit f553583f36
3 changed files with 17 additions and 8 deletions
+11 -1
View File
@@ -160,9 +160,19 @@ void IRCDProto::SendQuit(BotInfo *bi, const char *fmt, ...)
va_end(args);
SendQuitInternal(bi, buf);
}
/**
* Send a PONG reply to a received PING.
* servname should be left NULL to send a one param reply.
* @param servname Daemon or client that is responding to the PING.
* @param who Origin of the PING and destination of the PONG message.
**/
void IRCDProto::SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
if (!servname)
send_cmd(ircd->ts6 ? TS6SID : ServerName, "PONG %s", who);
else
send_cmd(ircd->ts6 ? TS6SID : ServerName, "PONG %s %s", servname, who);
}
void IRCDProto::SendInvite(BotInfo *bi, const char *chan, const char *nick)