Files
GS13NG/code/__HELPERS/text_vr.dm
T
PoojawaandGitHub 73b6b33f79 TG sync Sunday (#201)
* stage one

* datums and shit

* game stuff

* modules

* tgstation.dme

* tools

* these things for icons

* compiling fixes

* merge spree on TG

* other updates

* updated maps with deepfryers

* My helpers were not helping
2017-02-06 00:36:56 -06:00

25 lines
706 B
Plaintext

//Readds quotes and apostrophes to HTML-encoded strings
/proc/readd_quotes(var/t)
var/list/repl_chars = list(""" = "\"","'" = "'")
for(var/char in repl_chars)
var/index = findtext(t, char)
while(index)
t = copytext(t, 1, index) + repl_chars[char] + copytext(t, index+5)
index = findtext(t, char)
return t
proc/TextPreview(var/string,var/len=40)
if(lentext(string) <= len)
if(!lentext(string))
return "\[...\]"
else
return string
else
return "[copytext(string, 1, 37)]..."
var/list/mentor_log = list ( )
var/list/admintickets = list()
var/global/list/whitelisted_species_list[0]
/proc/log_mentor(text)
mentor_log.Add(text)
diary << "\[[time_stamp()]]MENTOR: [text]"