Small refacotring to match sbpp comms code style (A full refactor will come in another PR later)
Improve string speed comparaison
Motivation and Context
Less calls to get the same data, DRY the code.
Fix #912
While banning someone via IP, the steamid was never stored, it was no-sense, it easier to track a player banned (via the steamid in search function of the website instead of IP who can be dynamic for the same SteamID) + that also make the total bans counts correct
After years and multiples PR from contributors, the global code style is different from one function to another
strcmp is way faster than StrEqual (benchmarks was made)
Description
Motivation and Context
strcmp
is way faster thanStrEqual
(benchmarks was made)How Has This Been Tested?
In use since 6 months on https://bans.nide.gg/
Types of changes
Checklist:
Edit: My bad, I didnt pushed the latest version of the plugin, this is now solved.