summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/irc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 41b97f9c..b4429956 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -160,7 +160,11 @@ func (b *Birc) handleOther(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 := ""
if event.Code == "CTCP_ACTION" {
msg = event.Nick + " "