mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
-Added/extended some delays for creating solid structures from stacks
-Fixed retitling books sanitizing itself twice. Should also stop the unwanted & code git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4163 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -200,13 +200,13 @@
|
||||
var/choice = input("What would you like to change?") in list("Title", "Contents", "Author", "Cancel")
|
||||
switch(choice)
|
||||
if("Title")
|
||||
var/newtitle = copytext(sanitize(input("Write a new title:") as text|null),1,MAX_MESSAGE_LEN)
|
||||
var/newtitle = copytext(reject_bad_text(input("Write a new title:") as text|null),1,MAX_MESSAGE_LEN)
|
||||
if(!newtitle)
|
||||
usr << "The title is invalid."
|
||||
return
|
||||
else
|
||||
src.name = reject_bad_text(newtitle)
|
||||
src.title = reject_bad_text(newtitle)
|
||||
src.name = newtitle
|
||||
src.title = newtitle
|
||||
if("Contents")
|
||||
var/content = strip_html(input("Write your book's contents (HTML NOT allowed):"),8192) as message|null
|
||||
if(!content)
|
||||
|
||||
Reference in New Issue
Block a user