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

Ignore private queries (irc bridge)

This commit is contained in:
Wim 2016-10-29 16:27:07 +02:00
parent 8452eb12da
commit 721e0a2dcd

View File

@ -160,7 +160,11 @@ func (b *Birc) handleOther(event *irc.Event) {
} }
func (b *Birc) handlePrivMsg(event *irc.Event) { func (b *Birc) handlePrivMsg(event *irc.Event) {
flog.Debugf("handlePrivMsg() %s %s", event.Nick, event.Message()) // don't forward queries to the bot
if event.Arguments[0] == b.Nick {
return
}
flog.Debugf("handlePrivMsg() %s %s %#v", event.Nick, event.Message(), event)
msg := "" msg := ""
if event.Code == "CTCP_ACTION" { if event.Code == "CTCP_ACTION" {
msg = event.Nick + " " msg = event.Nick + " "