mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
redundant Config() call
This commit is contained in:
parent
cd0b6e3d0a
commit
f85222f5f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue