mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Update Chat System to use to_chat(src, "") instead of src << ""
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user