mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-05 08:08:10 -07:00
allow nick changing
This commit is contained in:
+2
-1
@@ -411,7 +411,8 @@ func (msg *NickCommand) HandleServer(server *Server) {
|
||||
return
|
||||
}
|
||||
|
||||
if server.clients.Get(msg.nickname) != client {
|
||||
target := server.clients.Get(msg.nickname)
|
||||
if (target != nil) && (target != client) {
|
||||
client.ErrNickNameInUse(msg.nickname)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user