forked from External/ergo
format replies to strings instead of using a Reply struct
This commit is contained in:
parent
25ebab37d3
commit
9960089226
6 changed files with 292 additions and 420 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue