Commit f1baddf
authored
fix: remove debug log, fix typos, logic inversion, and wrong return values (#1510)
sbpp_main.sp:
- Remove accidental debug LogMessage left in SelectBanIPCallback
("******************************Tagetauth: %s")
- Fix 'permament' -> 'permanent' typo (two occurrences: CommandBan,
CommandSBBan)
- Fix inverted condition in AddedFromSQLiteCallback: 'results == null'
should be 'results != null' — successful SQLite inserts were being
treated as failures, causing the offline-ban queue recovery to
re-extend temp bans instead of clearing processed entries
sbpp_report.sp:
- Start player-list loop at i=1 instead of i=0; client 0 is the server
console and is never a valid report target
sbpp_sleuth.sp:
- Return Plugin_Handled from sm_slreload command handler; Plugin_Continue
caused 'Unknown command' to appear in the caller's console1 parent c33c4ef commit f1baddf
3 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
1260 | | - | |
1261 | | - | |
1262 | 1260 | | |
1263 | 1261 | | |
1264 | 1262 | | |
| |||
1327 | 1325 | | |
1328 | 1326 | | |
1329 | 1327 | | |
1330 | | - | |
| 1328 | + | |
1331 | 1329 | | |
1332 | 1330 | | |
1333 | 1331 | | |
| |||
1609 | 1607 | | |
1610 | 1608 | | |
1611 | 1609 | | |
1612 | | - | |
| 1610 | + | |
1613 | 1611 | | |
1614 | 1612 | | |
1615 | 1613 | | |
| |||
2599 | 2597 | | |
2600 | 2598 | | |
2601 | 2599 | | |
2602 | | - | |
| 2600 | + | |
2603 | 2601 | | |
2604 | 2602 | | |
2605 | 2603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments