mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-18 21:48:10 -07:00
add a version command for sumeet
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user