Skip to content

Commit c13016b

Browse files
committed
Fix Empty Ban Reason #121 #125
@asherkin @stickz
1 parent 7d6b9e2 commit c13016b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
Binary file not shown.

game_upload/addons/sourcemod/scripting/sourcebans.sp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,15 @@ public Action:CommandBan(client, args)
425425
}
426426

427427
// Get the reason
428-
decl String:reason[128];
428+
new String:reason[128];
429429
if (args >= 3)
430430
{
431-
for (new i = 3; i <= args; i++)
432-
{
433-
GetCmdArg(i, buffer, sizeof(buffer));
434-
Format(reason, sizeof(reason), "%s %s", reason, buffer);
435-
}
431+
GetCmdArg(3, reason, sizeof(reason));
432+
for (new i = 4; i <= args; i++)
433+
{
434+
GetCmdArg(i, buffer, sizeof(buffer));
435+
Format(reason, sizeof(reason), "%s %s", reason, buffer);
436+
}
436437
}
437438
else
438439
{
@@ -2303,7 +2304,7 @@ public bool:CreateBan(client, target, time, String:reason[])
23032304
// We need a reason so offer the administrator a menu of reasons
23042305
PlayerDataPack[admin] = dataPack;
23052306
DisplayMenu(ReasonMenuHandle, admin, MENU_TIME_FOREVER);
2306-
ReplyToCommand(admin, "%c[%cSourceBans%c]%c %t", GREEN, NAMECOLOR, GREEN, NAMECOLOR, "Check Menu");
2307+
ReplyToCommand(admin, "%c[%cSourceBans++%c]%c %t", GREEN, NAMECOLOR, GREEN, NAMECOLOR, "Check Menu");
23072308
}
23082309

23092310
return true;
@@ -2562,4 +2563,4 @@ stock AccountForLateLoading()
25622563
}
25632564
}
25642565

2565-
//Yarr!
2566+
//Yarr!

web_upload/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
define('SB_GIT', true);
8585
if(!defined('SB_VERSION')){
8686
define('SB_VERSION', '1.5.4');
87-
define('SB_GITRev', '$Git: 330 $');
87+
define('SB_GITRev', '$Git: 331 $');
8888
}
8989
define('LOGIN_COOKIE_LIFETIME', (60*60*24*7)*2);
9090
define('COOKIE_PATH', '/');

0 commit comments

Comments
 (0)