summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-10-29 18:01:16 +0200
committerWim <wim@42.be>2016-10-29 18:01:16 +0200
commit4a336a6bbae78ae47ecea1708b784572b7a10ae5 (patch)
treea8356e494d574d3294c62bf612e47f14ed47b0ea /bridge/irc
parent60223d7f636ddbbe4d3d03403003a8a48d5b82a9 (diff)
downloadmatterbridge-msglm-4a336a6bbae78ae47ecea1708b784572b7a10ae5.tar.gz
matterbridge-msglm-4a336a6bbae78ae47ecea1708b784572b7a10ae5.tar.bz2
matterbridge-msglm-4a336a6bbae78ae47ecea1708b784572b7a10ae5.zip
Forward channel notices too (irc)
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/irc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 8ed99eb4..ea040af5 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -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)
}
}