From 077a8c4c5974d330b232e4808287cc844f1ea7c6 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 25 Oct 2025 10:31:53 -0600 Subject: [PATCH] Add type to message --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 83f71de..5adbbd2 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ const main = async () => { const targetExt = parseInt(target, 10); if ((targetExt >= 700 && targetExt < 800) || targetExt === 0) { // Also block forwards to 0 (operator line) console.log(`Deleting forward ${key} to target ${target}`); - await hook.send(`Fuckass with extension ${key.split('/')[1]} tried to forward to ${target}. Forward has been deleted.`); + await hook.send(`Fuckass with extension ${key.split('/')[1]} tried to forward to ${target}. Type: ${key.split('/')[0]} Forward has been deleted.`); const delCommand = `asterisk -x "database del ${key.replace('/', ' ')}"`; const { error, stdout, stderr } = await runAsterisk(delCommand); if (error) {