aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/banning.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-15 14:31:01 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-15 14:31:08 +0200
commit78c1a2db7c42b7d2cd5a036a5ef19bb95c679b86 (patch)
treee21d13fe176061825b7d6335831a9ae3795ae70b /lib/csapi/banning.h
parent24a206f6429f6fa29b9aa1ce39b7e4694e39b046 (diff)
downloadlibquotient-78c1a2db7c42b7d2cd5a036a5ef19bb95c679b86.tar.gz
libquotient-78c1a2db7c42b7d2cd5a036a5ef19bb95c679b86.zip
Connection::user(): validate after lookup, not before
If userMap only holds valid ids, there's no reason to spend time validating the sought id: if it's invalid, it won't be found. And lookups over a hash map are cheap.
Diffstat (limited to 'lib/csapi/banning.h')
0 files changed, 0 insertions, 0 deletions