time command

This commit is contained in:
Jeremy Latt
2014-02-25 07:45:40 -08:00
parent f0305cf01a
commit 4d2d18caf1
4 changed files with 28 additions and 0 deletions
+8
View File
@@ -791,3 +791,11 @@ func (msg *InviteCommand) HandleServer(server *Server) {
channel.Invite(target, client)
}
func (msg *TimeCommand) HandleServer(server *Server) {
if (msg.target != "") && (msg.target != server.name) {
msg.Client().ErrNoSuchServer(msg.target)
return
}
msg.Client().RplTime()
}