forked from an/flokati
modules/nickserv: added
This commit is contained in:
parent
44f64960b7
commit
44e5a1cfe4
|
@ -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)
|
||||||
|
}
|
Loading…
Reference in New Issue