diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index dc965873eb8..e70fa4b6662 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -11,8 +11,8 @@ world/IsBanned(key,address,computer_id) //check if the IP address is a known TOR node if( config && config.ToRban && ToRban_isbanned(address) ) - log_access("Failed Login: [src] - Banned: ToR - BYOND Version: [byond_version]") - message_admins("\blue Failed Login: [src] - Banned: ToR - BYOND Version: [byond_version]") + log_access("Failed Login: [src] - Banned: ToR") + message_admins("\blue Failed Login: [src] - Banned: ToR") //ban their computer_id and ckey for posterity AddBan(ckey(key), computer_id, "Use of ToR", "Automated Ban", 0, 0) return list("reason"="Using ToR", "desc"="\nReason: The network you are using to connect has been banned.\nIf you believe this is a mistake, please request help at [config.banappeals]") diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index bd72a2242e6..f808cf4dde8 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -3,6 +3,8 @@ //////////// #define TOPIC_SPAM_DELAY 4 //4 ticks is about 3/10ths of a second #define UPLOAD_LIMIT 1048576 //Restricts client uploads to the server to 1MB //Could probably do with being lower. +#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. /* When somebody clicks a link in game, this Topic is called first. It does the stuff in this proc and then is redirected to the Topic() proc for the src=[0xWhatever] @@ -86,8 +88,8 @@ //CONNECT// /////////// /client/New() - //Connection-Type Checking - if( connection != "seeker" ) + //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_list += src @@ -176,4 +178,8 @@ var/DBQuery/query_insert = dbcon.NewQuery("INSERT INTO erro_player (id, ckey, firstseen, lastseen, ip, computerid, lastadminrank) VALUES (null, '[sql_ckey]', Now(), Now(), '[sql_ip]', '[sql_computerid]', '[sql_admin_rank]')") query_insert.Execute() - dbcon.Disconnect() \ No newline at end of file + dbcon.Disconnect() + +#undef TOPIC_SPAM_DELAY +#undef UPLOAD_LIMIT +#undef MIN_CLIENT_VERSION diff --git a/html/changelog.html b/html/changelog.html index 9fde5ad1e47..b24f0f64956 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -47,6 +47,14 @@ should be listed in the changelog upon commit tho. Thanks. --> +