commit
caf3085594
1 changed files with 43 additions and 40 deletions
|
@ -103,6 +103,9 @@ weechat.factory('handlers', ['$rootScope', 'colors', 'models', 'plugins', functi
|
||||||
* Handle answers to hotlist request
|
* Handle answers to hotlist request
|
||||||
*/
|
*/
|
||||||
var handleHotlistInfo = function(message) {
|
var handleHotlistInfo = function(message) {
|
||||||
|
if (message.objects.length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var hotlist = message['objects'][0]['content'];
|
var hotlist = message['objects'][0]['content'];
|
||||||
hotlist.forEach(function(l) {
|
hotlist.forEach(function(l) {
|
||||||
var buffer = models.getBuffer(l.buffer);
|
var buffer = models.getBuffer(l.buffer);
|
||||||
|
|
Loading…
Reference in a new issue