Forgotten files.

This commit is contained in:
2019-09-02 22:24:34 +05:00
parent e1b71e5d44
commit 5452ea5b1a
10 changed files with 291 additions and 0 deletions

23
commands/quit/exported.go Normal file
View File

@@ -0,0 +1,23 @@
package quit
import (
// stdlib
"log"
// local
"develop.pztrn.name/gonews/gonews/eventer"
"develop.pztrn.name/gonews/gonews/networker"
)
func Initialize() {
log.Println("Initializing quit command...")
eventer.AddEventHandler(&eventer.EventHandler{
Command: "commands/quit",
Handler: handler,
})
}
func handler(data interface{}) interface{} {
return &networker.Reply{Code: "205", Data: "NNTP Service exits normally\r\n"}
}