summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index b2e3abf..68965b1 100644
--- a/main.go
+++ b/main.go
@@ -41,7 +41,7 @@ func kicker(conn *irc.Conn, channel string) chan string {
func privmsg(note, kick chan string) irc.HandlerFunc {
last := NewLast(10)
links := linker(note)
- wl := NewWatchList(5, 5*time.Second)
+ wl := NewWatchList(3, 5*time.Second)
return func(conn *irc.Conn, line *irc.Line) {
switch t := line.Text(); {
case isFlood(t):
@@ -50,7 +50,7 @@ func privmsg(note, kick chan string) irc.HandlerFunc {
c := notify(conn, line.Nick)
last.Dump(c)
close(c)
- case strings.HasPrefix(t, "s"):
+ case strings.HasPrefix(t, "s/"):
tofix := last.Last(line.Nick)
if fixed := re(tofix, t); fixed != "" {
note <- fmt.Sprintf("%v meant to say: %v",