mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-27 21:42:16 -08:00
ONICK command to allow operators to change users' nicks
This commit is contained in:
parent
abf00e22ec
commit
8c44bb9ff3
5 changed files with 116 additions and 66 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue