From 18aeaf9d3cce880ce7fe8a0a50cc0fc4ea47ce5b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 19 Aug 2019 11:34:12 +0200 Subject: [PATCH] Update NotificationSounds.plugin.js --- Plugins/NotificationSounds/NotificationSounds.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index d79eb974b8..fbcfb05e86 100644 --- a/Plugins/NotificationSounds/NotificationSounds.plugin.js +++ b/Plugins/NotificationSounds/NotificationSounds.plugin.js @@ -252,8 +252,8 @@ class NotificationSounds { var SoundUtils = BDFDB.WebModules.findByProperties("playSound", "createSound"); BDFDB.WebModules.patch(SoundUtils, "playSound", this, {instead: e => { + let type = e.methodArguments[0]; if (this.choices[type]) setImmediate(() => { - let type = e.methodArguments[0]; if (type == "message1") { if (this.firedEvents["dm"]) this.firedEvents["dm"] = false; else if (this.firedEvents["mentioned"]) this.firedEvents["mentioned"] = false;