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:
parent
721e0a2dcd
commit
dfc513530b
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user