Show correct names for registered users.

This commit is contained in:
Mikkel Krautz 2011-04-09 21:39:38 +02:00
parent 58fca6bcf7
commit 76ca3dcebc
2 changed files with 4 additions and 1 deletions

View file

@ -103,6 +103,9 @@ func (client *Client) UserId() int {
// Get the client's shown name.
func (client *Client) ShownName() string {
if client.IsSuperUser() {
return "SuperUser"
}
if client.IsRegistered() {
return client.user.Name
}