diff options
author | Wim <wim@42.be> | 2016-10-29 16:35:16 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-10-29 16:35:16 +0200 |
commit | dfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c (patch) | |
tree | 9fd1ae88d86a11c76fc5545556f660ac3f05b21c /bridge/irc | |
parent | 721e0a2dcda045b9a95e041e2ec5f37023b3bdcf (diff) | |
download | matterbridge-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.go | 4 |
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" { |