Author Topic: Disable links sent to the chat  (Read 950 times)

I personally don't need this, but I find that it would be extremely useful in some of the more popular servers

players within seem to have a blast starting a chain reaction of researchographic links, or just completely random links

just have it remove all instances of http:// from the chat and no more links.

just have it remove all instances of http:// from the chat and no more links.

unless Conservative wants something server-sided, this won't work since the server processes links (you'll get a tags instead on the client)

unless Conservative wants something server-sided, this won't work since the server processes links (you'll get a tags instead on the client)
cant you use this gay superlong stripmlcontrolchars function

unless Conservative wants something server-sided, this won't work since the server processes links (you'll get a tags instead on the client)
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: [Select]
function serverCmdmessageSent(%Client, %Msg)
{
%Msg = strReplace(%Msg, "http://", "");
parent::serverCmdmessageSent(%Client, %Msg);
}

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: [Select]
function serverCmdmessageSent(%Client, %Msg)
{
%Msg = strReplace(%Msg, "http://", "");
parent::serverCmdmessageSent(%Client, %Msg);
}
He was thinking client-sided

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?

Read my post next time.

unless Conservative wants something server-sided, ...

cant you use this gay superlong stripmlcontrolchars function
That's what I was thinking, should be simple enough

I was not thinking something client-sided

I was not thinking something client-sided
then simply do

package blah
{
    function servercmdmessagesent(%c,%b)
    {
        parent::servercmdmessagesent(%c,strreplace(%b,"http://",""));
    }
};activatepackage(blah);

Replace .com with no text, like you did with http://.

Replace .com with no text, like you did with http://.
.org
.net
.gov
.us
.cc
.co
.jp
.sv
.de
.edu


gay superlong function


From now on I'm going to name my functions after the sha1 hash of their actual name, just to irritate you. :D


From now on I'm going to name my functions after the sha1 hash of their actual name, just to irritate you. :D

Make sure to prefix them with function_name_sha1_ in order to improve reading and also to make Blocki more annoyed (and in case the sha1 started with a number).