Forgotten files.
This commit is contained in:
23
commands/quit/exported.go
Normal file
23
commands/quit/exported.go
Normal 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"}
|
||||
}
|
Reference in New Issue
Block a user