switch from twitter's emoji lib to emojione

This commit is contained in:
Tor Hveem 2015-03-21 16:43:46 +01:00
commit f042f729e1
3 changed files with 18 additions and 11 deletions

View file

@ -141,11 +141,11 @@ weechat.filter('getBufferQuickKeys', function () {
};
});
// Emojifis the string using https://github.com/twitter/twemoji
// Emojifis the string using https://github.com/Ranks/emojione
weechat.filter('emojify', function() {
return function(text, enable_JS_Emoji) {
if (enable_JS_Emoji === true) {
return twemoji.parse(text);
return emojione.unicodeToImage(text);
} else {
return(text);
}