3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 03:02:48 +01:00

rehash: Add note about cap del/new order

This commit is contained in:
Daniel Oaks 2017-03-09 19:09:58 +10:00
parent 5c38800a02
commit 531cf675c8

View File

@ -1380,6 +1380,7 @@ func (server *Server) rehash() error {
added[Cap302] = stsPolicy
}
}
// DEL caps and then send NEW ones so that updated caps get removed/added correctly
if len(removedCaps) > 0 {
sClient.Send(nil, server.name, "CAP", sClient.nick, "DEL", removed)
}