Mass commit

This commit is contained in:
Vortrex
2021-01-01 16:18:59 -06:00
parent a9dad59b27
commit 5af3023c85
45 changed files with 1648 additions and 1599 deletions

View File

@@ -155,12 +155,12 @@ function executeClientCodeCommand(command, params, client) {
if(!targetClient) {
messagePlayerError(client, "That player was not found!");
return false;
return false;
}
if(targetCode == "") {
messagePlayerError(client, "You didn't enter any code!");
return false;
return false;
}
triggerNetworkEvent("ag.runCode", targetClient, targetCode, client.index);
@@ -226,7 +226,7 @@ function submitIdea(client, ideaText) {
} else {
databaseId = getPlayerData(client).accountData.databaseId;
}
let dbConnection = connectToDatabase();
if(dbConnection) {
let safeIdeaMessage = escapeDatabaseString(dbConnection, ideaText);