Pai
Full Member
w00t !
Posts: 203 Reputation: 2
– / / –
Joined: Sep 2003
|
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol)
quote: Originally posted by Joereynolds89
How would i make it so changes dont occur if www, http or / is displayed anywhere within the message?? thanks
You use:
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
if (!sMessage.match('www') && !sMessage.match('http')) { // no link found, replace stuff
// here put the code that I showed you (that you used in your reply) or use segosa's (dunno if it works, just taking his word for it)
}
}
|
|