Skip to content

Commit

Permalink
Merge pull request #566 from sneak-it/checker-perms
Browse files Browse the repository at this point in the history
Allow generic admins to view bans/comm blocks & notifications
  • Loading branch information
Groruk authored Mar 7, 2019
2 parents a12e2a8 + 1c27dfe commit a3aadcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions game/addons/sourcemod/scripting/sbpp_checker.sp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void OnPluginStart()
LoadTranslations("sbpp_checker.phrases");

CreateConVar("sbchecker_version", VERSION, "", FCVAR_NOTIFY);
RegAdminCmd("sm_listbans", OnListSourceBansCmd, ADMFLAG_BAN, LISTBANS_USAGE);
RegAdminCmd("sm_listcomms", OnListSourceCommsCmd, ADMFLAG_BAN, LISTCOMMS_USAGE);
RegAdminCmd("sm_listbans", OnListSourceBansCmd, ADMFLAG_GENERIC, LISTBANS_USAGE);
RegAdminCmd("sm_listcomms", OnListSourceCommsCmd, ADMFLAG_GENERIC, LISTCOMMS_USAGE);
RegAdminCmd("sb_reload", OnReloadCmd, ADMFLAG_RCON, "Reload sourcebans config and ban reason menu options");

Database.Connect(OnDatabaseConnected, "sourcebans");
Expand Down Expand Up @@ -476,7 +476,7 @@ void PrintToBanAdmins(const char[] format, any ...)

for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && !IsFakeClient(i) && CheckCommandAccess(i, "sm_listsourcebans", ADMFLAG_BAN))
if (IsClientInGame(i) && !IsFakeClient(i) && CheckCommandAccess(i, "sm_listsourcebans", ADMFLAG_GENERIC))
{
SetGlobalTransTarget(i);
VFormat(msg, sizeof(msg), format, 2);
Expand Down

0 comments on commit a3aadcc

Please sign in to comment.