mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-02 23:08:56 -07:00
ONICK command to allow operators to change users' nicks
This commit is contained in:
@@ -227,6 +227,10 @@ func (client *Client) Friends() ClientSet {
|
||||
}
|
||||
|
||||
func (client *Client) SetNickname(nickname Name) {
|
||||
if client.HasNick() {
|
||||
Log.error.Printf("%s nickname already set!", client)
|
||||
return
|
||||
}
|
||||
client.nick = nickname
|
||||
client.server.clients.Add(client)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user