1
0
Fork 0
forked from External/ergo

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

View file

@ -47,6 +47,7 @@ var (
PRIVMSG: NewPrivMsgCommand,
PROXY: NewProxyCommand,
QUIT: NewQuitCommand,
TIME: NewTimeCommand,
TOPIC: NewTopicCommand,
USER: NewUserCommand,
VERSION: NewVersionCommand,
@ -932,3 +933,16 @@ func NewInviteCommand(args []string) (editableCommand, error) {
channel: args[1],
}, nil
}
type TimeCommand struct {
BaseCommand
target string
}
func NewTimeCommand(args []string) (editableCommand, error) {
cmd := &TimeCommand{}
if len(args) > 0 {
cmd.target = args[0]
}
return cmd, nil
}