forked from External/ergo
fix #1057
This commit is contained in:
parent
29165ded62
commit
6aa9a56242
2 changed files with 12 additions and 4 deletions
|
|
@ -206,7 +206,9 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
|
|||
}
|
||||
|
||||
// try to complete registration normally
|
||||
if c.preregNick == "" || !c.HasUsername() || session.capState == caps.NegotiatingState {
|
||||
// XXX(#1057) username can be filled in by an ident query without the client
|
||||
// having sent USER: check for both username and realname to ensure they did
|
||||
if c.preregNick == "" || c.username == "" || c.realname == "" || session.capState == caps.NegotiatingState {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue