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:
parent
c568f23134
commit
19f7c5669e
4 changed files with 10 additions and 4 deletions
|
@ -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" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue