From 8ee997279abd5c9a9b5e7611c21380e8585d7b15 Mon Sep 17 00:00:00 2001 From: DBX12 Date: Wed, 5 Apr 2023 15:26:02 +0200 Subject: [PATCH] Don't consume RPL_ENDOFMOTD or RPL_WELCOME anymore Also edited a comment which mistakenly referred to reply code 372 instead of 376 --- hellabot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hellabot.go b/hellabot.go index 47682ef..8349287 100644 --- a/hellabot.go +++ b/hellabot.go @@ -367,7 +367,7 @@ var pingPong = Trigger{ var joinChannels = Trigger{ Condition: func(bot *Bot, m *Message) bool { - return m.Command == irc.RPL_WELCOME || m.Command == irc.RPL_ENDOFMOTD // 001 or 372 + return m.Command == irc.RPL_WELCOME || m.Command == irc.RPL_ENDOFMOTD // 001 or 376 }, Action: func(bot *Bot, m *Message) bool { bot.didJoinChannels.Do(func() { @@ -383,7 +383,7 @@ var joinChannels = Trigger{ } } }) - return true + return false }, }