From 7acd9829ad67d080a543e66ad4bb1df70c081f27 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 3 Dec 2020 15:23:50 -0500 Subject: [PATCH] Fix --- commands/phone/hang-up.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/phone/hang-up.js b/commands/phone/hang-up.js index 4f2c7aa6..52dd8c06 100644 --- a/commands/phone/hang-up.js +++ b/commands/phone/hang-up.js @@ -20,7 +20,8 @@ module.exports = class HangUpCommand extends Command { if (call.adminCall && !this.client.isOwner(msg.author)) { return msg.reply('☎️ You cannot hang up in an admin call.'); } - if (this.client.isBlockedFromPhone(origin, recipient, msg.author)) { + const otherChannel = call.origin.id === msg.channel.id ? call.recipient : call.origin; + if (this.client.isBlockedFromPhone(msg.channel, otherChannel, msg.author)) { return msg.reply('☎️ You are blocked from hanging up this phone call.'); } const nonQuitter = msg.channel.id === call.origin.id ? call.recipient : call.origin;