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

NS REGISTER needs a login throttle check as well

This commit is contained in:
Shivaram Lingamneni 2019-02-05 20:09:36 -05:00
parent fba91b908f
commit 73f36fba08

View File

@ -339,6 +339,10 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
return return
} }
if !nsLoginThrottleCheck(client, rb) {
return
}
config := server.AccountConfig() config := server.AccountConfig()
var callbackNamespace, callbackValue string var callbackNamespace, callbackValue string
noneCallbackAllowed := false noneCallbackAllowed := false