modules/nickserv: added

This commit is contained in:
Andreas Neue 2017-01-21 17:06:59 +01:00
parent 44f64960b7
commit 44e5a1cfe4
1 changed files with 20 additions and 0 deletions

20
modules/nickserv.go Normal file
View File

@ -0,0 +1,20 @@
// 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)
}