diff --git a/modules/nickserv.go b/modules/nickserv.go new file mode 100644 index 0000000..ea90c9e --- /dev/null +++ b/modules/nickserv.go @@ -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) +}