This commit is contained in:
Dragon Fire
2020-05-13 18:44:41 -04:00
parent fc8d6ef546
commit 95ec05f6e5
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class PhoneCall {
send(channel, msg, hasText, hasImage, hasEmbed) {
if (msg.content && msg.content.toLowerCase() === 'hang up') {
if (this.ownerOrigin && channel.id !== this.origin.id) {
if (this.ownerOrigin && channel.id === this.origin.id) {
return this.recipient.send('☎️ You cannot hang up in an admin call.');
}
return this.hangup(channel);