mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
skip nick change if there is no difference
This commit is contained in:
parent
e9c5e4794e
commit
9dc229b98f
2 changed files with 5 additions and 1 deletions
|
|
@ -407,6 +407,10 @@ func (msg *NickCommand) HandleServer(server *Server) {
|
|||
return
|
||||
}
|
||||
|
||||
if msg.nickname == client.nick {
|
||||
return
|
||||
}
|
||||
|
||||
if server.clients.Get(msg.nickname) != client {
|
||||
client.ErrNickNameInUse(msg.nickname)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue