You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.
When BotBot connects to a Slack IRC server, it seems to be too quick to call bot.JoinAll(), which results in the bot not joining most of the channels. I modified irc/irc.go to join after the message of the day (MOTD) is displayed, and this seems to work:
// After USER / NICK is accepted, join all the channels,
// assuming we don't need to identify with NickServ
bot.RLock()
@@ -628,10 +640,16 @@ func (bot *ircBot) act(theLine *line.Line) {
bot.Lock()
bot.isAuthenticating = false
bot.Unlock()
- bot.JoinAll()+ //bot.JoinAll()
return
}
+ if theLine.Command == "376" {+ glog.Infoln("MOTD done, joining now!")+ bot.JoinAll()+ }+
A few questions:
Could you implement a more robust way of sending a JOIN message at the right time? For example, the client may attempt to send a LIST command and get a response before attempting to join all channels.
Should the IRC client periodically check which channels it is in, and then rejoin any of the channels not in its targeted list?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When BotBot connects to a Slack IRC server, it seems to be too quick to call
bot.JoinAll()
, which results in the bot not joining most of the channels. I modifiedirc/irc.go
to join after the message of the day (MOTD) is displayed, and this seems to work:A few questions:
The text was updated successfully, but these errors were encountered: