mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
get rid of user abstraction, services
This commit is contained in:
parent
f133f3691d
commit
f04dd7c5d5
11 changed files with 145 additions and 983 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
type Command interface {
|
||||
Client() *Client
|
||||
User() *User
|
||||
Source() Identifier
|
||||
Reply(Reply)
|
||||
HandleServer(*Server)
|
||||
|
|
@ -46,10 +45,6 @@ func (command *BaseCommand) Client() *Client {
|
|||
return command.client
|
||||
}
|
||||
|
||||
func (command *BaseCommand) User() *User {
|
||||
return command.Client().user
|
||||
}
|
||||
|
||||
func (command *BaseCommand) SetBase(c *Client) {
|
||||
*command = BaseCommand{c}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue