diff --git a/auth.go b/auth.go index e8f9192..4d27ca4 100644 --- a/auth.go +++ b/auth.go @@ -54,7 +54,7 @@ func NewAuth() *Auth { } // AllowAnonymous determines if anonymous users are permitted. -func (a Auth) AllowAnonymous() bool { +func (a *Auth) AllowAnonymous() bool { return a.whitelist.Len() == 0 } diff --git a/chat/command.go b/chat/command.go index 76e4b21..61b7073 100644 --- a/chat/command.go +++ b/chat/command.go @@ -62,7 +62,7 @@ func (c Commands) Alias(command string, alias string) error { // Run executes a command message. func (c Commands) Run(room *Room, msg message.CommandMsg) error { - if msg.From == nil { + if msg.From() == nil { return ErrNoOwner }