Store WeeChat version is an array of numbers
This commit is contained in:
parent
5df0ce21a2
commit
8c965e0b90
3 changed files with 4 additions and 3 deletions
|
@ -267,7 +267,7 @@ weechat.factory('connection',
|
|||
};
|
||||
|
||||
var sendHotlistClear = function() {
|
||||
if (parseInt(models.version.charAt(0)) >= 1) {
|
||||
if (models.version[0] >= 1) {
|
||||
// WeeChat >= 1 supports clearing hotlist with this command
|
||||
sendMessage('/buffer set hotlist -1');
|
||||
// Also move read marker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue