What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] BB code to IRC code and vice versa

[Request] BB code to IRC code and vice versa
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] BB code to IRC code and vice versa
quote:
Originally posted by vikke
Simple!
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
Message.replace("[/C]", "");
Message.replace("]", "");
Message.replace("[C=", "");
}

Not working with gradients though..

Message.replace will only replace the first instance of the string, not the others... (probably the reason for not working with gradients :p)

code:
for(a=0;a<=99;a++){
myString = myString.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
myString = myString.replace(/\[\/c\]/g,'·$');
}
will work though

Converting IRC to BB will be harder though as IRC has not got a close tag (unless they use ·$ which is unlikely), which is required for it to work :p

This post was edited on 10-04-2006 at 05:53 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2006 05:01 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] BB code to IRC code and vice versa - by Jimbo on 09-30-2006 at 12:24 PM
RE: [Request] BB code to IRC code - by NanaFreak on 09-30-2006 at 12:27 PM
RE: [Request] BB code to IRC code - by ins4ne on 09-30-2006 at 12:40 PM
RE: [Request] BB code to IRC code - by NanaFreak on 09-30-2006 at 12:43 PM
RE: [Request] BB code to IRC code - by Spunky on 09-30-2006 at 02:53 PM
RE: [Request] BB code to IRC code - by Jimbo on 09-30-2006 at 03:24 PM
RE: [Request] BB code to IRC code and vice versa - by ins4ne on 09-30-2006 at 07:44 PM
RE: [Request] BB code to IRC code and vice versa - by Spunky on 09-30-2006 at 07:48 PM
RE: [Request] BB code to IRC code and vice versa - by Jimbo on 10-04-2006 at 04:28 PM
RE: [Request] BB code to IRC code and vice versa - by vikke on 10-04-2006 at 04:36 PM
RE: [Request] BB code to IRC code and vice versa - by Spunky on 10-04-2006 at 05:01 PM
RE: [Request] BB code to IRC code and vice versa - by Jimbo on 10-04-2006 at 05:48 PM
RE: [Request] BB code to IRC code and vice versa - by Spunky on 10-04-2006 at 05:49 PM
RE: [Request] BB code to IRC code and vice versa - by Jimbo on 10-04-2006 at 05:56 PM
RE: [Request] BB code to IRC code and vice versa - by Spunky on 10-04-2006 at 05:58 PM
RE: [Request] BB code to IRC code and vice versa - by Jimbo on 10-04-2006 at 06:08 PM
RE: [Request] BB code to IRC code and vice versa - by Spunky on 10-04-2006 at 06:10 PM


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