mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-28 11:03:19 +00:00
webclient support
no cid checks, not supported properly on webclient Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
/client/New(TopicData)
|
/client/New(TopicData)
|
||||||
TopicData = null //Prevent calls to client.Topic from connect
|
TopicData = null //Prevent calls to client.Topic from connect
|
||||||
|
|
||||||
if(connection != "seeker") //Invalid connection type.
|
if(!(connection in list("seeker", "web"))) //Invalid connection type.
|
||||||
return null
|
return null
|
||||||
if(byond_version < MIN_CLIENT_VERSION) //Out of date client.
|
if(byond_version < MIN_CLIENT_VERSION) //Out of date client.
|
||||||
return null
|
return null
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
var/matches
|
var/matches
|
||||||
if( (M.lastKnownIP == client.address) )
|
if( (M.lastKnownIP == client.address) )
|
||||||
matches += "IP ([client.address])"
|
matches += "IP ([client.address])"
|
||||||
if( (M.computer_id == client.computer_id) )
|
if( (client.connection != "web") && (M.computer_id == client.computer_id) )
|
||||||
if(matches) matches += " and "
|
if(matches) matches += " and "
|
||||||
matches += "ID ([client.computer_id])"
|
matches += "ID ([client.computer_id])"
|
||||||
spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!")
|
spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!")
|
||||||
|
|||||||
Reference in New Issue
Block a user