summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-10-29 16:35:16 +0200
committerWim <wim@42.be>2016-10-29 16:35:16 +0200
commitdfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c (patch)
tree9fd1ae88d86a11c76fc5545556f660ac3f05b21c /bridge/irc
parent721e0a2dcda045b9a95e041e2ec5f37023b3bdcf (diff)
downloadmatterbridge-msglm-dfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c.tar.gz
matterbridge-msglm-dfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c.tar.bz2
matterbridge-msglm-dfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c.zip
Ignore messages from ourself (irc bridge)
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/irc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index b4429956..8ed99eb4 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -164,6 +164,10 @@ func (b *Birc) handlePrivMsg(event *irc.Event) {
if event.Arguments[0] == b.Nick {
return
}
+ // don't forward message from ourself
+ if event.Nick == b.Nick {
+ return
+ }
flog.Debugf("handlePrivMsg() %s %s %#v", event.Nick, event.Message(), event)
msg := ""
if event.Code == "CTCP_ACTION" {