From 4e315b53a8b76c8946c3a8719c5f8cc5c6a6511f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Wed, 5 Mar 2014 13:01:22 +0000 Subject: [PATCH] Display all parts of message prefix in notification Previously, we only got the first part -- which would be "@" for an op, and not their nick. --- js/glowingbear.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index 024b3b9..397e4f9 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -856,7 +856,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', body = message.text; } else { title = 'Highlight in '; - body = '<' + message.prefix[0].text + '> ' + message.text; + var prefix = ''; + for (var i = 0; i < message.prefix.length; i++) { + prefix += message.prefix[i].text; + } + body = '<' + prefix + '> ' + message.text; } title += buffer.shortName; title += buffer.fullName.replace(/irc.([^\.]+)\..+/, " ($1)");