mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 00:00:27 +00:00
Only respond to notices from nickserv (irc bridge)
This commit is contained in:
parent
475bed5e19
commit
8452eb12da
@ -146,7 +146,7 @@ func (b *Birc) handleNewConnection(event *irc.Event) {
|
||||
}
|
||||
|
||||
func (b *Birc) handleNotice(event *irc.Event) {
|
||||
if strings.Contains(event.Message(), "This nickname is registered") {
|
||||
if strings.Contains(event.Message(), "This nickname is registered") && event.Nick == b.Config.NickServNick {
|
||||
b.i.Privmsg(b.Config.NickServNick, "IDENTIFY "+b.Config.NickServPassword)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user