patch 2de0ad1de382e090f44ded877cd0f66bcf257165 Author: E. Bosch Date: Sun Jan 30 21:50:58 CET 2022 * irc: In TOPIC and JOIN commands fix bad use of entity cache, was producing wrong topic result diff -rN -u old-irgramd/irc.py new-irgramd/irc.py --- old-irgramd/irc.py 2024-11-22 21:32:51.867146714 +0100 +++ new-irgramd/irc.py 2024-11-22 21:32:51.867146714 +0100 @@ -281,7 +281,7 @@ chan = channel.lower() real_chan = self.get_realcaps_name(chan) - await self.irc_channel_topic(user, real_chan) + await self.irc_channel_topic(user, real_chan, [None]) async def handle_irc_ping(self, user, payload): self.logger.debug('Handling PING: %s', payload) @@ -483,7 +483,7 @@ self.irc_channels_ops[chan].discard(user.irc_nick) self.irc_channels_founder[chan].discard(user.irc_nick) - async def irc_channel_topic(self, user, channel, entity_cache=[None]): + async def irc_channel_topic(self, user, channel, entity_cache): chan = channel.lower() topic = await self.tg.get_channel_topic(chan, entity_cache) timestamp = await self.tg.get_channel_creation(chan, entity_cache)