From dfc513530b7a3e22a82fbbc9ee4cf5cf57fc053c Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 29 Oct 2016 16:35:16 +0200 Subject: Ignore messages from ourself (irc bridge) --- bridge/irc/irc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bridge') 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" { -- cgit v1.2.3