1
0
Fork 0
forked from External/ergo

add a version command for sumeet

This commit is contained in:
Jeremy Latt 2014-02-24 22:04:11 -08:00
parent 994200bf46
commit d6ec1e719b
4 changed files with 35 additions and 5 deletions

View file

@ -762,3 +762,13 @@ func (msg *DebugCommand) HandleServer(server *Server) {
server.Reply(client, "written to ergonomadic-heap.prof")
}
}
func (msg *VersionCommand) HandleServer(server *Server) {
client := msg.Client()
if (msg.target != "") && (msg.target != server.name) {
client.ErrNoSuchServer(msg.target)
return
}
client.RplVersion()
}