Merge pull request #62 from eepp/various-fixes

Various fixes
This commit is contained in:
David Cormier 2013-10-19 11:19:20 -07:00
commit caf3085594

View file

@ -103,6 +103,9 @@ weechat.factory('handlers', ['$rootScope', 'colors', 'models', 'plugins', functi
* Handle answers to hotlist request
*/
var handleHotlistInfo = function(message) {
if (message.objects.length == 0) {
return;
}
var hotlist = message['objects'][0]['content'];
hotlist.forEach(function(l) {
var buffer = models.getBuffer(l.buffer);