mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge remote-tracking branch 'upstream/dev-freeze' into dev
Conflicts: code/game/objects/items/stacks/tiles/plasteel.dm code/game/objects/items/stacks/tiles/tile_types.dm code/modules/materials/materials.dm code/modules/mob/living/carbon/human/life.dm code/modules/mob/living/silicon/pai/pai.dm code/modules/surgery/implant.dm code/setup.dm
This commit is contained in:
@@ -179,9 +179,10 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
return "Bad Key"
|
||||
|
||||
var/client/C
|
||||
var/req_ckey = ckey(input["adminmsg"])
|
||||
|
||||
for(var/client/K in clients)
|
||||
if(K.ckey == input["adminmsg"])
|
||||
if(K.ckey == req_ckey)
|
||||
C = K
|
||||
break
|
||||
if(!C)
|
||||
@@ -222,10 +223,28 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
world_topic_spam_protect_ip = addr
|
||||
return "Bad Key"
|
||||
|
||||
return show_player_info_irc(input["notes"])
|
||||
return show_player_info_irc(ckey(input["notes"]))
|
||||
|
||||
else if(copytext(T,1,4) == "age")
|
||||
var/input[] = params2list(T)
|
||||
if(input["key"] != config.comms_password)
|
||||
if(world_topic_spam_protect_ip == addr && abs(world_topic_spam_protect_time - world.time) < 50)
|
||||
spawn(50)
|
||||
world_topic_spam_protect_time = world.time
|
||||
return "Bad Key (Throttled)"
|
||||
|
||||
world_topic_spam_protect_time = world.time
|
||||
world_topic_spam_protect_ip = addr
|
||||
return "Bad Key"
|
||||
|
||||
var/age = get_player_age(input["age"])
|
||||
if(isnum(age))
|
||||
if(age >= 0)
|
||||
return "[age]"
|
||||
else
|
||||
return "Ckey not found"
|
||||
else
|
||||
return "Database connection failed or not set up"
|
||||
|
||||
|
||||
/world/Reboot(var/reason)
|
||||
|
||||
Reference in New Issue
Block a user