flokati/modules/nickserv.go

21 lines
384 B
Go

// vi:ts=4:sts=4:sw=4:noet:tw=72
package modules
import (
"fmt"
"time"
)
func init() {
RunFuncs["nickserv"] = nickservRun
}
func nickservRun() {
pass := ModParams["nickserv-pass"]
email := ModParams["nickserv-email"]
time.Sleep(10 * time.Second)
SayCh <- fmt.Sprintf("%s\n%s %s %s", "N", "REGISTER", pass, email)
SayCh <- fmt.Sprintf("%s\n%s %s", "N", "IDENTIFY", pass)
}