From 71c29002166c03606ae1fc2a8f478366d474465e Mon Sep 17 00:00:00 2001 From: Simon Cooksey Date: Wed, 9 Nov 2016 10:32:12 +0000 Subject: [PATCH] Alt-H now clears hotlists on WeeChat relay Fixes #832. --- js/connection.js | 5 +++++ js/inputbar.js | 1 + 2 files changed, 6 insertions(+) diff --git a/js/connection.js b/js/connection.js index 4c74347..f5f03b5 100644 --- a/js/connection.js +++ b/js/connection.js @@ -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 diff --git a/js/inputbar.js b/js/inputbar.js index 43839d0..81630ed 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -364,6 +364,7 @@ weechat.directive('inputBar', function() { buffer.unread = 0; buffer.notification = 0; }); + connection.sendHotlistClearAll(); } var caretPos;