Fix a race condition on the bot mode

This caused the history to sometimes be replayed despite the +B mode being set.
This commit is contained in:
lucidiot 2021-04-26 22:33:37 +02:00
parent 17ab225bc3
commit 9824a627e6
1 changed files with 1 additions and 1 deletions

View File

@ -7,8 +7,8 @@ from pinhook import plugin, bot
class BreadBot(bot.Bot): class BreadBot(bot.Bot):
def on_welcome(self, c, e): def on_welcome(self, c, e):
super().on_welcome(c, e)
c.mode(self.bot_nick, '+B') c.mode(self.bot_nick, '+B')
super().on_welcome(c, e)
for channel in self.chanlist: for channel in self.chanlist:
self.process_output(c, channel, plugin.message('bread')) self.process_output(c, channel, plugin.message('bread'))