Bug 139057 - fix chatzilla's response to certain pings

patch by twpol@aol.com
r=rginda
This commit is contained in:
samuel%sieb.net 2002-12-16 23:28:54 +00:00
Родитель 8d01966f5a
Коммит a16f0d6076
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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();