1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-27 13:08:30 +00:00

Fixed a bug with mention parsing when there are no keywords set.

This commit is contained in:
SirStendec 2015-02-08 02:59:20 -05:00
parent c568f23134
commit 19f7c5669e
4 changed files with 10 additions and 4 deletions

View file

@ -170,6 +170,9 @@ FFZ.get_capitalization = function(name, callback) {
if ( window.BetterTTV )
return BetterTTV.chat.helpers.lookupDisplayName(name);
if ( ! name )
return name;
name = name.toLowerCase();
if ( name == "jtv" || name == "twitchnotify" )
return name;
@ -236,7 +239,7 @@ FFZ._mentions_to_regex = function(list) {
FFZ.prototype._mentionize = function(controller, tokens) {
var mention_words = this.settings.keywords;
if ( ! mention_words )
if ( ! mention_words || ! mention_words.length )
return tokens;
if ( typeof tokens == "string" )