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.
l-merge-prefix
Lorenz Hübschle-Schneider 12 years ago
parent 055dc9eba9
commit 4e315b53a8
  1. 6
      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)");

Loading…
Cancel
Save