get rid of user abstraction, services

This commit is contained in:
Jeremy Latt 2014-02-04 19:28:24 -08:00
parent f133f3691d
commit f04dd7c5d5
11 changed files with 145 additions and 983 deletions

View file

@ -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}
}