From 8452eb12dad99aa65bc3acfe6782d75fdc010c0a Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 29 Oct 2016 16:09:58 +0200 Subject: Only respond to notices from nickserv (irc bridge) --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 9c391500..41b97f9c 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -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) } } -- cgit v1.2.3