From 13aafc3fdedf4d791d4e4935d467bdcb4b63ffda Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:59:21 -0300 Subject: [PATCH] fix(bot): :bug: `p.hangup` not working. --- payphone/cogs/calls/cog.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 9de9cab..0fc92db 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -464,8 +464,10 @@ class Calls(base.Cog): await self.bot.redis.srem( constants.CHANNELS_ONCALL_SET, - [str(channel_id)] - + ([str(other_channel.id)] if other_channel is not None else []), + *( + [str(channel_id)] + + ([str(other_channel.id)] if other_channel is not None else []) + ), ) if other_channel is not None: