Fix a race condition on the bot mode

This caused the history to sometimes be replayed despite the +B mode being set.
pull/2/head
lucidiot 2 years ago
parent 17ab225bc3
commit 9824a627e6

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

Loading…
Cancel
Save