Ignore messages from ourself (irc bridge)

This commit is contained in:
Wim 2016-10-29 16:35:16 +02:00
parent 721e0a2dcd
commit dfc513530b
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ func (b *Birc) handlePrivMsg(event *irc.Event) {
if event.Arguments[0] == b.Nick { if event.Arguments[0] == b.Nick {
return return
} }
// don't forward message from ourself
if event.Nick == b.Nick {
return
}
flog.Debugf("handlePrivMsg() %s %s %#v", event.Nick, event.Message(), event) flog.Debugf("handlePrivMsg() %s %s %#v", event.Nick, event.Message(), event)
msg := "" msg := ""
if event.Code == "CTCP_ACTION" { if event.Code == "CTCP_ACTION" {