From 00cb9d89cf9f512d01a1edd3fa6c7265921e3b88 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 22 Aug 2022 12:30:25 +0200 Subject: [PATCH] Update ChatAliases.plugin.js --- Plugins/ChatAliases/ChatAliases.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index 6147a5bb07..c63e49df50 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -2,7 +2,7 @@ * @name ChatAliases * @author DevilBro * @authorId 278543574059057154 - * @version 2.4.0 + * @version 2.4.1 * @description Allows you to configure your own Aliases/Commands * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "ChatAliases", "author": "DevilBro", - "version": "2.4.0", + "version": "2.4.1", "description": "Allows you to configure your own Aliases/Commands" } }; @@ -172,7 +172,7 @@ module.exports = (_ => { ].flat(10).filter(n => n); }, onSelect: data => { - if (data.results.aliases[data.index].replace.indexOf(" ") > -1) { + if (data.results.aliases[data.index].word.indexOf(" ") > -1) { let textValue = BDFDB.ReactUtils.findValue(BDFDB.DOMUtils.getParent(BDFDB.dotCN.textareawrapall, document.activeElement) || document.querySelector(BDFDB.dotCN.textareawrapall), "textValue"); if (textValue) data.options.replaceText(textValue.replace(new RegExp(BDFDB.StringUtils.regEscape(data.results.aliases[data.index].word), "g"), BDFDB.StringUtils.insertNRST(data.results.aliases[data.index].replace))); }