From b72c663146838bf8c48b35ecede110b63e09eb04 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Wed, 17 Oct 2012 10:11:25 +0000 Subject: [PATCH] TopicData is stripped from connecting clients. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4901 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/client/client procs.dm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 8f26b3928a7..cdc704dfc00 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -87,11 +87,14 @@ /////////// //CONNECT// /////////// -/client/New() - //Connection-Type and client byond_version checking - if( connection != "seeker" || (byond_version < MIN_CLIENT_VERSION)) //Out of date or wrong connection type. Update your client!! - del(src) - return +/client/New(TopicData) + TopicData = null //Prevent calls to client.Topic from connect + + if(connection != "seeker") //Invalid connection type. + return null + if(byond_version < MIN_CLIENT_VERSION) //Out of date client. + return null + client_list += src if ( (world.address == address || !address) && !host ) host = key @@ -105,7 +108,7 @@ holder.owner = src holder.state = null - ..() //calls mob.Login() + . = ..() //calls mob.Login() if(holder) admin_memo_show()