forked from External/ergo
USER: disallow usernames that break the protocol
This commit is contained in:
parent
19c2bb69fc
commit
199f8bd8ae
2 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue