Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bridge/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ type Protocol struct {
SkipVersionCheck bool // mattermost
StripNick bool // all protocols
StripMarkdown bool // irc
SASLLogin string // IRC
SASLPassword string // IRC
SyncTopic bool // slack
TengoModifyMessage string // general
Team string // mattermost, keybase
Expand Down
8 changes: 6 additions & 2 deletions bridge/irc/irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@ func (b *Birc) Connect() error {
}

if b.GetBool("UseSASL") {
saslLogin := b.GetString("SASLLogin")
if saslLogin == "" {
saslLogin = b.GetString("Nick")
}
i.Config.SASL = &girc.SASLPlain{
User: b.GetString("NickServNick"),
Pass: b.GetString("NickServPassword"),
User: saslLogin,
Pass: b.GetString("SASLPassword"),
}
}

Expand Down