5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 01:10:27 +00:00

Forward channel notices too (irc)

This commit is contained in:
Wim 2016-10-29 18:01:16 +02:00
parent 60223d7f63
commit 4a336a6bba

View File

@ -148,6 +148,8 @@ func (b *Birc) handleNewConnection(event *irc.Event) {
func (b *Birc) handleNotice(event *irc.Event) {
if strings.Contains(event.Message(), "This nickname is registered") && event.Nick == b.Config.NickServNick {
b.i.Privmsg(b.Config.NickServNick, "IDENTIFY "+b.Config.NickServPassword)
} else {
b.handlePrivMsg(event)
}
}