fix check for SrAdmin

This commit is contained in:
INSANEMODE 2020-11-16 04:14:25 -06:00
parent 4dad0ab053
commit 2c6b89356c
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
void init()
{
std::cout << "ClanTagRank (1.0.3) by INSANEMODE\n";
std::cout << "ClanTagRank (1.0.4) by INSANEMODE\n";
std::thread rank(Game::clanTagThread);
rank.detach();
}

View File

@ -87,7 +87,7 @@ namespace Game
memcpy((void*)currentname, (void*)((clientAddr + (clientOffset * i))), 16);
currentname_str = std::string(currentname, 16);
memcpy((void*)currentClanTag, (void*)(((clientAddr +(clientOffset * i)) + clanTagAddr)), 8);
if ((strstr(currentClanTag, "Creator") == NULL) && (strstr(currentClanTag, "Admin") == NULL) && (strstr(currentClanTag, "Trusted") == NULL) && (strstr(currentClanTag, "Mod") == NULL) && (strstr(currentClanTag, "Owner") == NULL) && (strstr(currentClanTag, "3arc") == NULL) && (strncmp(currentname, emptyname, 16) != 0))
if ((strstr(currentClanTag, "Creator") == NULL) && (strstr(currentClanTag, "Admin") == NULL) && (strstr(currentClanTag, "SrAdmin") == NULL) && (strstr(currentClanTag, "Trusted") == NULL) && (strstr(currentClanTag, "Mod") == NULL) && (strstr(currentClanTag, "Owner") == NULL) && (strstr(currentClanTag, "3arc") == NULL) && (strncmp(currentname, emptyname, 16) != 0))
{
changeClanTag_str = ClanTagRequest(currentname);