mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-25 12:12:05 -08:00
Ignore private queries (irc bridge)
This commit is contained in:
parent
8452eb12da
commit
721e0a2dcd
@ -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 + " "
|
||||||
|
Loading…
Reference in New Issue
Block a user