From 119e0a89ff5cd0de8644826b590ed0ab043800a8 Mon Sep 17 00:00:00 2001 From: Mloc-Argent Date: Sat, 1 Nov 2014 16:14:29 +0000 Subject: [PATCH] webclient support no cid checks, not supported properly on webclient Signed-off-by: Mloc-Argent --- code/modules/client/client procs.dm | 2 +- code/modules/mob/login.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index cbc9fb80a5..77893ef0bb 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -105,7 +105,7 @@ /client/New(TopicData) 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 if(byond_version < MIN_CLIENT_VERSION) //Out of date client. return null diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index 9360e758a1..c888218605 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -11,7 +11,7 @@ var/matches if( (M.lastKnownIP == 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 " 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!")