diff --git a/src/main.js b/src/main.js index 1c2c2367..1e2a243a 100644 --- a/src/main.js +++ b/src/main.js @@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}` FrankerFaceZ.Logger = Logger; const VER = FrankerFaceZ.version_info = { - major: 4, minor: 0, revision: 0, extra: '-rc18', + major: 4, minor: 0, revision: 0, extra: '-rc18.1', commit: __git_commit__, build: __webpack_hash__, toString: () => diff --git a/src/modules/chat/actions/index.jsx b/src/modules/chat/actions/index.jsx index a7b7de2d..2a3c1544 100644 --- a/src/modules/chat/actions/index.jsx +++ b/src/modules/chat/actions/index.jsx @@ -199,33 +199,37 @@ export default class Actions extends Module { return false; }; - for(const reason of reasons) { - const text = this.replaceVariables(reason.i18n ? this.i18n.t(reason.i18n, reason.text) : reason.text, data); + if ( reasons && reasons.length ) { + for(const reason of reasons) { + const text = this.replaceVariables(reason.i18n ? this.i18n.t(reason.i18n, reason.text) : reason.text, data); - reason_elements.push(