5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 00:00:27 +00:00

Ignore messages from ourself (irc bridge)

This commit is contained in:
Wim 2016-10-29 16:35:16 +02:00
parent 721e0a2dcd
commit dfc513530b

View File

@ -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" {