mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-20 14:28:11 -07:00
restrict nicknames to proper character set
This commit is contained in:
@@ -407,6 +407,11 @@ func (msg *NickCommand) HandleServer(server *Server) {
|
||||
return
|
||||
}
|
||||
|
||||
if !IsNickname(msg.nickname) {
|
||||
client.ErrErroneusNickname(msg.nickname)
|
||||
return
|
||||
}
|
||||
|
||||
if msg.nickname == client.nick {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user