diff --git a/js/inputbar.js b/js/inputbar.js index 6fc4067..0188cb2 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -118,7 +118,7 @@ weechat.directive('inputBar', function() { } // New style clearing requires this, old does not - if (parseInt(models.version.charAt(0)) >= 1) { + if (parseInt(models.version[0]) >= 1) { connection.sendHotlistClear(); }