patch 5f288223526f5888b98269a37b8c36df0be8f38d
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Mar 24 23:45:37 CET 2023
* Use named parameter full_join in join_irc_channel(), remove default value False not needed
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-22 15:47:05.472104231 +0100
+++ new-irgramd/irc.py 2024-11-22 15:47:05.472104231 +0100
@@ -225,7 +225,7 @@
else:
for channel in channels.split(','):
if channel.lower() in self.irc_channels.keys():
- await self.join_irc_channel(user, channel, True)
+ await self.join_irc_channel(user, channel, full_join=True)
else:
await self.reply_code(user, 'ERR_NOSUCHCHANNEL', (channel,))
@@ -540,7 +540,7 @@
else:
await self.reply_code(user, 'RPL_CHANNELMODEIS', (channel, modes,''))
- async def join_irc_channel(self, user, channel, full_join=False):
+ async def join_irc_channel(self, user, channel, full_join):
entity_cache = [None]
chan = channel.lower()
real_chan = self.get_realcaps_name(chan)
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-22 15:47:05.472104231 +0100
+++ new-irgramd/telegram.py 2024-11-22 15:47:05.472104231 +0100
@@ -350,7 +350,7 @@
irc_nick = await self.get_irc_nick_from_telegram_id(event.action_message.sender_id)
if event.user_added or event.user_joined:
- await self.irc.join_irc_channel(irc_nick, irc_channel, False)
+ await self.irc.join_irc_channel(irc_nick, irc_channel, full_join=False)
elif event.user_kicked or event.user_left:
await self.irc.part_irc_channel(irc_nick, irc_channel)
@@ -361,7 +361,7 @@
channel = self.get_telegram_channel(chat)
self.tid_to_iid[chat.id] = channel
self.irc.iid_to_tid[channel] = chat.id
- await self.irc.join_irc_channel(self.irc.irc_nick, channel, True)
+ await self.irc.join_irc_channel(self.irc.irc_nick, channel, full_join=True)
async def handle_telegram_media(self, event):
message = event.message