diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } } |