forked from External/ergo
cap: Properly suspend registration for CAP negotiation
This commit is contained in:
parent
50a571ce8e
commit
0ccabead31
3 changed files with 4 additions and 8 deletions
|
|
@ -387,9 +387,6 @@ func (msg *RFC2812UserCommand) HandleRegServer(server *Server) {
|
|||
|
||||
func (msg *UserCommand) setUserInfo(server *Server) {
|
||||
client := msg.Client()
|
||||
if client.capState == CapNegotiating {
|
||||
client.capState = CapNegotiated
|
||||
}
|
||||
|
||||
server.clients.Remove(client)
|
||||
client.username, client.realname = msg.username, msg.realname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue