|
@@ -132,19 +132,17 @@
|
|
|
return sq_throwerror(vm, "ScriptAdmin::Send requires a table as first parameter. No data sent.");
|
|
|
}
|
|
|
|
|
|
std::string json;
|
|
|
ScriptAdmin::MakeJSON(vm, -1, SQUIRREL_MAX_DEPTH, json);
|
|
|
|
|
|
#ifdef ENABLE_NETWORK
|
|
|
if (json.length() > NETWORK_GAMESCRIPT_JSON_LENGTH) {
|
|
|
ScriptLog::Error("You are trying to send a table that is too large to the AdminPort. No data sent.");
|
|
|
sq_pushinteger(vm, 0);
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
NetworkAdminGameScript(json.c_str());
|
|
|
#endif /* ENABLE_NETWORK */
|
|
|
|
|
|
sq_pushinteger(vm, 1);
|
|
|
return 1;
|
|
|
}
|