summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 1f0732b..bf32468 100644
--- a/main.go
+++ b/main.go
@@ -52,6 +52,7 @@ func privmsg(room string) irc.HandlerFunc {
}
case strings.HasPrefix(t, "s"):
if t == lastRe[line.Nick] {
+ log.Println("ignore", t)
return
}
lastRe[line.Nick] = t
@@ -59,7 +60,7 @@ func privmsg(room string) irc.HandlerFunc {
if tofix, ok := last[line.Nick]; ok {
fixed := re(tofix, t[1:], global)
if fixed != "" && fixed != tofix {
- log.Println("RE", t)
+ log.Println("regexp", t)
fmt.Fprintf(NewNotify(conn, line.Target()), "%v meant to say: %s", line.Nick, fixed)
}
}