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

@@ -72,16 +72,16 @@
var/choice = input(src,"Please select an IP address to remove from the ToR banlist:","Remove ToR ban",null) as null|anything in F.dir
if(choice)
F.dir.Remove(choice)
src << "<b>Address removed</b>"
to_chat(src, "<b>Address removed</b>")
if("remove all")
src << "<b>[TORFILE] was [fdel(TORFILE)?"":"not "]removed.</b>"
to_chat(src, "<b>[TORFILE] was [fdel(TORFILE)?"":"not "]removed.</b>")
if("find")
var/input = input(src,"Please input an IP address to search for:","Find ToR ban",null) as null|text
if(input)
if(ToRban_isbanned(input))
src << "<font color='green'><b>Address is a known ToR address</b></font>"
to_chat(src, "<font color='green'><b>Address is a known ToR address</b></font>")
else
src << "<font color='red'><b>Address is not a known ToR address</b></font>"
to_chat(src, "<font color='red'><b>Address is not a known ToR address</b></font>")
return
#undef TORFILE