Merge pull request #217 from lorenzhs/notificationfix

Display all parts of message prefix in notification
This commit is contained in:
David Cormier 2014-03-06 08:22:25 -05:00
commit ff1f240854

View file

@ -906,7 +906,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)");