redundant Config() call

This commit is contained in:
Shivaram Lingamneni 2025-06-15 18:40:09 -04:00
parent cd0b6e3d0a
commit f85222f5f5

View file

@ -3175,7 +3175,7 @@ func metadataHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
return return
} }
maxKeys := server.Config().Metadata.MaxKeys maxKeys := config.Metadata.MaxKeys
isSelf := targetClient != nil && client == targetClient isSelf := targetClient != nil && client == targetClient
if isSelf && maxKeys > 0 && targetObj.CountMetadata() >= maxKeys { if isSelf && maxKeys > 0 && targetObj.CountMetadata() >= maxKeys {