What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Slang Replacer

Slang Replacer
Author: Message:
Keikonium
Full Member
***


Posts: 229
Reputation: 3
35 / Male / Flag
Joined: Jul 2006
RE: Slang Replacer
Most people have semi good grammar, so this should be a nice little fix. When you type, you usually use spaces. Ex:

Bob says:
Hey John, I g2g, hospital time... :(
---> Hey John, I got to go, hospital time... :(

John says:
Okay, br buddy :)
---> Okay, best reguards buddy :)

So, a simple fix would be instead of:

sMessage = sMessage.replace(/br/gi,"best reguards");
make it
sMessage = sMessage.replace(/ br /gi," best reguards ");

:). Notice the space. This wont catch "br" at the end of a sentance however. But if you put an extra space at the end, it'll catch it ;).

This is how I wrote my personal script anyway.
Now Playing:
[image not working] [Image: 87cc21b0.png]
07-16-2006 06:16 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Slang Replacer - by stuartbennett on 07-16-2006 at 09:11 AM
RE: Slang Replacer - by fish-luke on 07-16-2006 at 04:45 PM
RE: Slang Replacer - by 4penguino on 07-16-2006 at 04:49 PM
RE: Slang Replacer - by stuartbennett on 07-16-2006 at 05:19 PM
RE: Slang Replacer - by Keikonium on 07-16-2006 at 06:16 PM
RE: RE: Slang Replacer - by stuartbennett on 07-22-2006 at 06:09 PM
RE: Slang Replacer - by segosa on 07-16-2006 at 09:57 PM
RE: Slang Replacer - by Ezra on 07-16-2006 at 10:20 PM
RE: Slang Replacer - by Silentdragon on 07-16-2006 at 11:11 PM
RE: Slang Replacer - by Keikonium on 07-16-2006 at 11:45 PM
RE: Slang Replacer - by cooldude_i06 on 07-16-2006 at 11:50 PM
RE: RE: Slang Replacer - by Keikonium on 07-16-2006 at 11:58 PM
RE: Slang Replacer - by stuartbennett on 07-17-2006 at 05:47 AM
RE: Slang Replacer - by Ezra on 07-17-2006 at 08:33 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On