diff --git a/SelfMute/scripting/SelfMute.sp b/SelfMute/scripting/SelfMute.sp index ce1d23b0..42b0120e 100644 --- a/SelfMute/scripting/SelfMute.sp +++ b/SelfMute/scripting/SelfMute.sp @@ -117,7 +117,7 @@ public void ReadClientsToPermMuteForClient(int client) char sQuery[512]; //limits this way to only select online clients to apply self mute for. Format(sQuery, sizeof(sQuery), "select target_steamid from `unloze_selfmute` where client_steamid = '%s' and target_steamid in (select client_steamid from `is_online`)", csSID); - g_hDatabase.Query(SQL_GetClientsToSelfMuteForClient, sQuery, GetClientSerial(client), DBPrio_Low); + g_hDatabase.Query(SQL_GetClientsToSelfMuteForClient, sQuery, GetClientSerial(client), DBPrio_High); } public void SQL_GetClientsToSelfMuteForClient(Database db, DBResultSet results, const char[] error, int iSerial) @@ -145,7 +145,7 @@ public void SQL_GetClientsToSelfMuteForClient(Database db, DBResultSet results, { char sAuth[64]; GetClientAuthId(i, AuthId_Steam2, sAuth, sizeof(sAuth)); - if (StrEqual(cSID, sAuth) && !GetIgnored(client, i)) + if (StrEqual(cSID, sAuth)) { Ignore(client, i); PrintToChat(client, "Player you permanent muted connected: %N", i); @@ -192,7 +192,7 @@ public void insert_client_as_online(int client) g_hDatabase.Escape(sName, sEscapedName, size2 + 1); char sQuery[512]; Format(sQuery, sizeof(sQuery), "INSERT IGNORE INTO `is_online` (`client_name`, `client_steamid`) VALUES ('%s', '%s')", sEscapedName, csSID); - g_hDatabase.Query(SQL_FinishedQueryUpdateMutes, sQuery, _, DBPrio_Low); + g_hDatabase.Query(SQL_FinishedQueryUpdateMutes, sQuery, _, DBPrio_High); } public void SQL_FinishedQueryUpdateMutes(Database db, DBResultSet results, const char[] error, any data) @@ -748,9 +748,7 @@ public Action Command_SelfMutePerm(int client, int args) if(GetExempt(client, aTargetList[0])) { UnExempt(client, aTargetList[0]); - PrintToChat(client, "\x04[Self-Mute]\x01 You have removed exempt from self-mute:\x04 %s", sTargetName); - return Plugin_Handled; } }