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) {