summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-10-29 16:09:58 +0200
committerWim <wim@42.be>2016-10-29 16:09:58 +0200
commit8452eb12dad99aa65bc3acfe6782d75fdc010c0a (patch)
tree25ebebe2c7f2f5fccd06258a9f46eb93dce8a8ed /bridge/irc/irc.go
parent475bed5e19ea867b143cf3a0602fa78b3a32adc9 (diff)
downloadmatterbridge-msglm-8452eb12dad99aa65bc3acfe6782d75fdc010c0a.tar.gz
matterbridge-msglm-8452eb12dad99aa65bc3acfe6782d75fdc010c0a.tar.bz2
matterbridge-msglm-8452eb12dad99aa65bc3acfe6782d75fdc010c0a.zip
Only respond to notices from nickserv (irc bridge)
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}