From e2bbca1bfa6c2ad3b3036c8db9d51683c0c3978d Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sun, 24 Oct 2004 20:03:45 +0000 Subject: [PATCH] Bug 261711 - Treat '330' message the same as other whois lines. ChatZilla only. r=samuel@sieb.net --- extensions/irc/xul/content/handlers.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/irc/xul/content/handlers.js b/extensions/irc/xul/content/handlers.js index 592e84bc72aa..22340452a124 100644 --- a/extensions/irc/xul/content/handlers.js +++ b/extensions/irc/xul/content/handlers.js @@ -1305,8 +1305,11 @@ function my_whoisreply (e) CIRCNetwork.prototype.on330 = /* ircu's 330 numeric ("X is logged in as Y") */ function my_330 (e) { - this.display (getMsg(MSG_FMT_LOGGED_ON, [e.decodeParam(2), e.params[3]]), - "330"); + var msg = getMsg(MSG_FMT_LOGGED_ON, [e.decodeParam(2), e.params[3]]); + if (e.user) + e.user.display(msg, "330"); + else + this.display(msg, "330"); } CIRCNetwork.prototype.on341 = /* invite reply */