diff --git a/lib/channel.js b/lib/channel.js index 3ce50eee..4a8e9505 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2562,7 +2562,7 @@ Channel.prototype.validateEmote = function (f) { f.source = s; try { - new RegExp(f.regex, "gi"); + new RegExp(f.source, "gi"); } catch (e) { return false; }