mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
skip nick change if there is no difference
This commit is contained in:
parent
e9c5e4794e
commit
9dc229b98f
@ -23,7 +23,7 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
SEM_VER = "ergonomadic-1.2.0"
|
||||
SEM_VER = "ergonomadic-1.2.1"
|
||||
CRLF = "\r\n"
|
||||
MAX_REPLY_LEN = 512 - len(CRLF)
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user