From 1f1e8541b0964bcc66dad7db7e7707b3dee4a833 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sun, 4 Dec 2005 22:34:55 +0000 Subject: [PATCH] Bug 40974 - Finally, add custom messages to nickname popup button. ChatZilla only. r=samuel --- extensions/irc/xul/content/menus.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/irc/xul/content/menus.js b/extensions/irc/xul/content/menus.js index 78b6c0227e5d..3def51a8f5a3 100644 --- a/extensions/irc/xul/content/menus.js +++ b/extensions/irc/xul/content/menus.js @@ -399,9 +399,12 @@ function initMenus() ["nick"], ["-"], ["back", {type: "checkbox", checkedif: net + " and !" + netAway}], - ["away", {type: "checkbox", checkedif: net + " and " + netAwayIsDef}], - ["custom-away", - {type: "checkbox", checkedif: net + " and !" + netAwayIsDef}] + ["away", {type: "checkbox", + checkedif: "cx.sourceObject.prefs.away == item.message", + repeatfor: "client.awayMsgs", + repeatmap: "cx.reason = item.message" }], + ["-"], + ["custom-away"] ] };