Forward channel notices too (irc)

This commit is contained in:
Wim 2016-10-29 18:01:16 +02:00
parent 60223d7f63
commit 4a336a6bba
1 changed files with 2 additions and 0 deletions

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)
}
}