flokati/modules/nickserv.go

21 lines
384 B
Go
Raw Normal View History

2017-01-21 16:06:59 +00:00
// 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)
}