Skip to content

Commit

Permalink
Fixes charter
Browse files Browse the repository at this point in the history
  • Loading branch information
imtakingabreakdontatme committed Jun 9, 2016
1 parent 51d7f86 commit 576c215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/items/charter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
user << "The crew has already settled into the shift. It probably wouldn't be good to rename the station right now."
return

var/new_name = reject_bad_name( input(user, "What do you want to name [station_name()]? Keep in mind particularly terrible names may attract the attention of your employers.") as text|null )
var/new_name = input(user, "What do you want to name [station_name()]? Keep in mind particularly terrible names may attract the attention of your employers.") as text|null
if(new_name)
world.name = new_name
station_name = new_name
minor_announce("[user.real_name] has designated your station as [world.name]", "Captain's Charter", 0)

else
user << "<font color='red'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>"
used = FALSE
3 changes: 2 additions & 1 deletion code/modules/admin/secrets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
if("reset_name")
if(!check_rights(R_ADMIN))
return
world.name = "Space Station 13"
world.name = new_station_name()
station_name = world.name
log_admin("[key_name(usr)] reset the station name.")
message_admins("<span class='adminnotice'>[key_name_admin(usr)] reset the station name.</span>")

Expand Down

0 comments on commit 576c215

Please sign in to comment.