From 5275bcba12f2c9b68699b407c417dbb46f671573 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Mon, 11 Jul 2022 11:16:18 -0400 Subject: [PATCH] clean up a bit --- dist/plugin.js | 2 +- src/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/plugin.js b/dist/plugin.js index d610beb..162e4b5 100644 --- a/dist/plugin.js +++ b/dist/plugin.js @@ -1 +1 @@ -(function(){"use strict";function n(e){const o=demon.webpack.findByProps("createPendingReply");e.unpatch=demon.patcher.before("createPendingReply",o,r=>{r[0].shouldMention=!1})}function t(e){e.unpatch()}var a={onStart:n,onStop:t,metadata:{name:"noReplyMention",desc:"Disable reply pings by default. (Cumcord port)",author:"Drake",cumcord:!1}};return a})(); +(function(){"use strict";const{findByProps:e}=demon.summon("modules/webpack"),{before:t}=demon.summon("patcher");function o(){const n=e("createPendingReply");return{unpatch:t("createPendingReply",n,s=>{s[0].shouldMention=!1})}}function c(n){n.unpatch()}var a={onStart:o,onStop:c,meta:{name:"noReplyMention",desc:"Disable reply pings by default."}};return a})(); diff --git a/src/index.js b/src/index.js index d8a0c70..427649e 100644 --- a/src/index.js +++ b/src/index.js @@ -17,5 +17,9 @@ function onStop(ctx) { export default { onStart, - onStop + onStop, + meta: { + name: "noReplyMention", + desc: "Disable reply pings by default." + } }