mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-29 10:18:11 -07:00
USER: disallow usernames that break the protocol
This commit is contained in:
@@ -88,7 +88,6 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
|
||||
//TODO(dan): replace this with IsUsername/IsIRCName?
|
||||
if Name(username).IsNickname() {
|
||||
client.Notice("*** Found your username")
|
||||
//TODO(dan): we do a bunch of user replacing in server.go userHandler, do we need that here?
|
||||
client.username = Name(username)
|
||||
// we don't need to updateNickMask here since nickMask is not used for anything yet
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user