| Blockland Forums > Suggestions & Requests |
| Disable links sent to the chat |
| << < (2/4) > >> |
| Blocki:
--- Quote from: Ipquarx on September 28, 2012, 12:24:01 PM ---saying blah.com into chat will not make an a tag saying http://blah.com will make a link see where i'm coming from on this? --- Code: ---function serverCmdmessageSent(%Client, %Msg) { %Msg = strReplace(%Msg, "http://", ""); parent::serverCmdmessageSent(%Client, %Msg); } --- End code --- --- End quote --- He was thinking client-sided |
| Port:
--- Quote from: Ipquarx on September 28, 2012, 12:24:01 PM ---saying blah.com into chat will not make an a tag saying http://blah.com will make a link see where i'm coming from on this? --- End quote --- Read my post next time. --- Quote from: Port on September 28, 2012, 12:18:54 PM ---unless Conservative wants something server-sided, ... --- End quote --- |
| HellsHero:
--- Quote from: Blocki on September 28, 2012, 12:20:09 PM ---cant you use this gay superlong stripmlcontrolchars function --- End quote --- That's what I was thinking, should be simple enough |
| Conservative:
I was not thinking something client-sided |
| Blocki:
--- Quote from: Conservative on September 28, 2012, 02:34:24 PM ---I was not thinking something client-sided --- End quote --- then simply do package blah { function servercmdmessagesent(%c,%b) { parent::servercmdmessagesent(%c,strreplace(%b,"http://","")); } };activatepackage(blah); |
| Navigation |
| Message Index |
| Next page |
| Previous page |