From e6b6baf8d6ab8440c5b89de4354f46a0fb433969 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Fri, 24 Apr 2009 12:21:24 +0000 Subject: [PATCH] Bug 480630 - Put user's channel mode into table row attribute, for motifs. r=silver p=glenjamin+bmo@gmail.com (Glen Mailer) ChatZilla only. git-svn-id: svn://10.0.0.236/trunk@257047 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/xul/content/static.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/extensions/irc/xul/content/static.js b/mozilla/extensions/irc/xul/content/static.js index c6198831d07..edaff25e8c7 100644 --- a/mozilla/extensions/irc/xul/content/static.js +++ b/mozilla/extensions/irc/xul/content/static.js @@ -4237,9 +4237,16 @@ function __display(message, msgtype, sourceObj, destObj) if (fromAttr) { if (fromUser) + { msgRow.setAttribute("msg-user", fromAttr); + // Set some mode information for channel users + if (fromType == 'IRCChanUser') + msgRow.setAttribute("msg-user-mode", sourceObj.modes.join(" ")); + } else + { msgRow.setAttribute("msg-source", fromAttr); + } } if (toOther) msgRow.setAttribute("to-other", toOther);