Use new command for "syncing" hotlist.

This patch also implements parsing version message and using that to
check that the WeeChat is new enough to use the new command.
This commit is contained in:
Tor Hveem 2015-03-21 14:08:09 +01:00
commit c71ce1b404
4 changed files with 28 additions and 8 deletions

View file

@ -8,6 +8,9 @@
var models = angular.module('weechatModels', []);
models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) {
// WeeChat version
this.version = null;
var parseRichText = function(text) {
var textElements = weeChat.Protocol.rawText2Rich(text),
typeToClassPrefixFg = {