webclient support

no cid checks, not supported properly on webclient

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
Mloc-Argent
2014-11-01 16:14:29 +00:00
parent a6934a531b
commit 119e0a89ff
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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!")