Update Chat System to use to_chat(src, "") instead of src << ""

This commit is contained in:
Atermonera
2019-11-05 13:31:35 -09:00
committed by VirgoBot
parent d3b07d3fb7
commit a45472b446
140 changed files with 1312 additions and 642 deletions

View File

@@ -22,7 +22,7 @@
return
if("")
F.dir.Remove(ckey)
src << "<b>Memo removed</b>"
to_chat(src, "<b>Memo removed</b>")
return
if( findtext(memo,"<script",1,0) )
return
@@ -35,7 +35,7 @@
var/savefile/F = new(MEMOFILE)
if(F)
for(var/ckey in F.dir)
src << "<center><span class='motd'><b>Admin Memo</b><i> by [F[ckey]]</i></span></center>"
to_chat(src, "<center><span class='motd'><b>Admin Memo</b><i> by [F[ckey]]</i></span></center>")
//delete your own or somebody else's memo
/client/proc/admin_memo_delete()
@@ -48,7 +48,7 @@
ckey = src.ckey
if(ckey)
F.dir.Remove(ckey)
src << "<b>Removed Memo created by [ckey].</b>"
to_chat(src, "<b>Removed Memo created by [ckey].</b>")
#undef MEMOFILE
#undef ENABLE_MEMOS