mob/proc
newchar()
var/user_name = input(usr, "Your name?", "Name")
if(!user_name)
return 0
if(lentext(user_name) > 15)
src <<"<font size = 1><font color = red><b>System:</b></font><font size = 1><font color = black><b> Your name is too long.</b></font>"
return 0
for(var/N in un_wanted_names && html)
if(findtext(user_name,N) == 0)
src <<"<font size = 1><font color = red><b>System:</b></font><font size = 1><font color = black><b> Please do not put HTML in names.</b></font>"
return 0
else
src.name = user_name
world<<"<font size = 1><font color = green><B>Event: <font color = black>[src.name] has logged in</font>"
src.Save()
var/list/html = list("<",">","font","size")
var
list
un_wanted_names = list("blocked_for_forum")
Problem description:
I went back to a names demo and it works fine except for the name "<" That is the only one in the list it won't block.
But then again, if it's blocking ">", even if its not blocking "<", HTML is blocked anyway...