Bug 139057 - fix chatzilla's response to certain pings

patch by twpol@aol.com
r=rginda


git-svn-id: svn://10.0.0.236/trunk@135360 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
samuel%sieb.net 2002-12-16 23:28:54 +00:00
parent c7d7840bac
commit e09fa0a7e8

View File

@ -1350,7 +1350,14 @@ function serv_ping (e)
{
/* non-queued send, so we can calcualte lag */
this.connection.sendData ("PONG :" + e.meat + "\n");
if (e.meat)
{
this.connection.sendData ("PONG :" + e.meat + "\n");
}
else
{
this.connection.sendData ("PONG :" + e.params[e.params.length - 1] + "\n");
}
this.connection.sendData ("PING :LAGTIMER\n");
this.lastPing = this.lastPingSent = new Date();