Skip to content

Use bot.Nick and bot.Realname when doing SASL authenticate#71

Open
DBX12 wants to merge 1 commit intowhyrusleeping:masterfrom
DBX12:sasl-auth-realname
Open

Use bot.Nick and bot.Realname when doing SASL authenticate#71
DBX12 wants to merge 1 commit intowhyrusleeping:masterfrom
DBX12:sasl-auth-realname

Conversation

@DBX12
Copy link

@DBX12 DBX12 commented Apr 6, 2023

hellabot is setting the wrong realname when performing SASL auth in SASLAuthentictae()

hellabot/sasl.go

Lines 62 to 69 in 98cbebb

func (bot *Bot) SASLAuthenticate(user, pass string) {
bot.sasl.SetAuth(user, pass)
bot.addSASL.Do(func() { bot.AddTrigger(bot.sasl) })
bot.Debug("Beginning SASL Authentication")
bot.Send("CAP REQ :sasl")
bot.SetNick(bot.Nick)
bot.sendUserCommand(bot.Nick, bot.Nick)
}

Seems like a mistake and bot.sendUserCommand(bot.Nick, bot.Realname) was intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant