1
0
Fork 0
forked from External/ergo

stub cap command

This commit is contained in:
Jeremy Latt 2014-02-10 11:14:34 -08:00
parent 28bd5a40ba
commit fb65203805
2 changed files with 29 additions and 4 deletions

View file

@ -18,6 +18,7 @@ var (
NotEnoughArgsError = errors.New("not enough arguments")
ErrParseCommand = errors.New("failed to parse message")
parseCommandFuncs = map[string]parseCommandFunc{
"CAP": NewCapCommand,
"JOIN": NewJoinCommand,
"MODE": NewModeCommand,
"NICK": NewNickCommand,
@ -564,3 +565,19 @@ func NewOperCommand(args []string) (editableCommand, error) {
password: args[1],
}, nil
}
// TODO
type CapCommand struct {
BaseCommand
args []string
}
func (msg *CapCommand) String() string {
return fmt.Sprintf("CAP(args=%s)", msg.args)
}
func NewCapCommand(args []string) (editableCommand, error) {
return &CapCommand{
args: args,
}, nil
}