Skip to content

Commit

Permalink
Skip group membership checks for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleyMarie committed Jan 1, 2022
1 parent 6a64584 commit ff36aa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/smsdk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define SMEXT_CONF_NAME "Authenticate by Steam Group Extension"
#define SMEXT_CONF_DESCRIPTION "Block non-members of a Steam group from joining"
#define SMEXT_CONF_VERSION "2.1.1"
#define SMEXT_CONF_VERSION "2.1.2"
#define SMEXT_CONF_AUTHOR "LAN of DOOM"
#define SMEXT_CONF_URL "https://lanofdoom.github.io/auth-by-steam-group/"
#define SMEXT_CONF_LOGTAG "LODAUTH"
Expand Down
6 changes: 5 additions & 1 deletion plugin/auth_by_steam_group.sp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Handle g_steam_key;
public const Plugin myinfo = {
name = "Authenticate by Steam Group Plugin", author = "LAN of DOOM",
description = "Block non-members of a Steam group from joining",
version = "2.1.1",
version = "2.1.2",
url = "https://lanofdoom.github.io/auth-by-steam-group/"};

public Extension __ext_auth_by_steam_group = {
Expand All @@ -33,6 +33,10 @@ public void OnClientAuthorized(int client, const char[] auth) {
return;
}

if (IsFakeClient(client)) {
return;
}

AuthBySteamGroup_CheckUser(client, group_id, steam_key);
}

Expand Down

0 comments on commit ff36aa0

Please sign in to comment.