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 {
|
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" {
|
||||||
|
|
Loading…
Reference in New Issue