mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Removes topic limiter
This commit is contained in:
@@ -30,7 +30,6 @@
|
|||||||
////////////
|
////////////
|
||||||
//SECURITY//
|
//SECURITY//
|
||||||
////////////
|
////////////
|
||||||
var/next_allowed_topic_time = 10
|
|
||||||
// comment out the line below when debugging locally to enable the options & messages menu
|
// comment out the line below when debugging locally to enable the options & messages menu
|
||||||
//control_freak = 1
|
//control_freak = 1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
////////////
|
////////////
|
||||||
//SECURITY//
|
//SECURITY//
|
||||||
////////////
|
////////////
|
||||||
#define TOPIC_SPAM_DELAY 2 //2 ticks is about 2/10ths of a second; it was 4 ticks, but that caused too many clicks to be lost due to lag
|
|
||||||
#define UPLOAD_LIMIT 10485760 //Restricts client uploads to the server to 10MB //Boosted this thing. What's the worst that can happen?
|
#define UPLOAD_LIMIT 10485760 //Restricts client uploads to the server to 10MB //Boosted this thing. What's the worst that can happen?
|
||||||
#define MIN_CLIENT_VERSION 0 //Just an ambiguously low version for now, I don't want to suddenly stop people playing.
|
#define MIN_CLIENT_VERSION 0 //Just an ambiguously low version for now, I don't want to suddenly stop people playing.
|
||||||
//I would just like the code ready should it ever need to be used.
|
//I would just like the code ready should it ever need to be used.
|
||||||
@@ -24,11 +23,6 @@
|
|||||||
if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
|
if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
|
||||||
return
|
return
|
||||||
|
|
||||||
//Reduces spamming of links by dropping calls that happen during the delay period
|
|
||||||
if(next_allowed_topic_time > world.time)
|
|
||||||
return
|
|
||||||
next_allowed_topic_time = world.time + TOPIC_SPAM_DELAY
|
|
||||||
|
|
||||||
//search the href for script injection
|
//search the href for script injection
|
||||||
if( findtext(href,"<script",1,0) )
|
if( findtext(href,"<script",1,0) )
|
||||||
world.log << "Attempted use of scripts within a topic call, by [src]"
|
world.log << "Attempted use of scripts within a topic call, by [src]"
|
||||||
|
|||||||
Reference in New Issue
Block a user