Alt-H now clears hotlists on WeeChat relay

Fixes #832.
This commit is contained in:
Simon Cooksey 2016-11-09 10:32:12 +00:00 committed by Lorenz Hübschle-Schneider
parent 1ba1698703
commit 71c2900216
2 changed files with 6 additions and 0 deletions

View file

@ -420,6 +420,10 @@ weechat.factory('connection',
}
};
var sendHotlistClearAll = function() {
sendMessage("/input hotlist_clear");
};
var requestNicklist = function(bufferId, callback) {
// Prevent requesting nicklist for all buffers if bufferId is invalid
if (!bufferId) {
@ -513,6 +517,7 @@ weechat.factory('connection',
sendMessage: sendMessage,
sendCoreCommand: sendCoreCommand,
sendHotlistClear: sendHotlistClear,
sendHotlistClearAll: sendHotlistClearAll,
fetchMoreLines: fetchMoreLines,
requestNicklist: requestNicklist,
attemptReconnect: attemptReconnect

View file

@ -364,6 +364,7 @@ weechat.directive('inputBar', function() {
buffer.unread = 0;
buffer.notification = 0;
});
connection.sendHotlistClearAll();
}
var caretPos;