Lukáš Č. 733e33e82a Fix a bug where ban reason is used as ban duration (#2383)
In basebans there are 3 commands for banning: banip,addban,ban
They have required arguments for ban duration and optional arguments for ban reason. However the functions that process the arguments do not properly validate the duration and if reason is provided instead of duration, the functions just convert that string into an integer and use it as the ban duration. This usually results in a permaban with an empty reason. This commit adds a loop for checking duration chars to be numeric before converting them to an int.
2026-01-01 13:01:24 +01:00
2025-11-13 13:23:13 +01:00
2025-12-04 19:17:34 -05:00
2025-11-08 11:42:34 -05:00
2019-09-30 22:43:18 -07:00
2020-08-18 23:09:43 -07:00
2025-11-13 13:23:13 +01:00
2021-09-22 12:36:44 -07:00
2011-04-13 19:05:41 -05:00
2021-11-11 23:41:42 -08:00
2024-10-20 12:57:26 -04:00

SourceMod

General

Development

Contact

  • Connect with us on GameSurge IRC in #sourcemod
  • Alternatively feel free to join our Discord server

License

SourceMod is licensed under the GNU General Public License version 3. Special exceptions are outlined in the LICENSE.txt file inside of the licenses folder.

S
Description
No description provided
Readme
51 MiB
Languages
C 59.7%
C++ 18%
HTML 4.8%
Roff 3.8%
SourcePawn 3.4%
Other 10%