format replies to strings instead of using a Reply struct

This commit is contained in:
Jeremy Latt 2014-02-19 22:20:34 -08:00
parent 25ebab37d3
commit 9960089226
6 changed files with 292 additions and 420 deletions

View file

@ -170,20 +170,13 @@ type Identifier interface {
}
type Replier interface {
Reply(Reply)
}
type Reply interface {
Code() ReplyCode
Format(*Client) []string
Source() string
Reply(...string)
}
type Command interface {
Code() StringCode
Client() *Client
Source() Identifier
Reply(Reply)
}
type ServerCommand interface {