Here's the basic gist of it...
mob/verb/Chat()
set hidden = 1
if(global.worldMuted) return
var/msg = input("","") as text|null
if(findtext(msg,"http://") || findtext(msg,"www.") || findtext(msg,"https://"))
del(usr)
return
msg = copytext(msg,1,250)
if(worldActive)
for(var/mob/M) M<<"[usr]: [msg]"
else if(sayActive)
for(var/mob/M in view(usr)) M<<"[usr]: [msg]"
I know that effectively ends any chance for anyone to send any links through the chat. But I kinda only want to end advertising of any other BYOND games. Why? Call me paranoid, but I don't like people joining my game to spam up the chat with a link to another game :\. What would I put in to replace the findtext() functions to prevent links to other BYOND games? I know there's at least 2 different ways to link to another game.