From 44e5a1cfe4266d339a8b63313800d296f7d11f08 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sat, 21 Jan 2017 17:06:59 +0100 Subject: [PATCH] modules/nickserv: added --- modules/nickserv.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/nickserv.go 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) +}