What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » RemoveFormatCodes

RemoveFormatCodes
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RemoveFormatCodes
Nice catch... (aka: confirmed)

However the bug is not in the RemoveFormatCodes() function. This function acts like it should.

---

The bug is actually how the sMessage parameter is passed to the OnEvent_ChatWndReceiveMessage() event.

If [c=1]abcdef[/c] was received, it will be passed with all the tag characters being replaced by spaces:
(note that the bold tags don't matter, neither does it matter if you use a gradient or not or multiple color tags)


  send: [c=1]abcdef[/c]
passed: _____abcdef____



So your variable sMessage in MsgPlus.RemoveFormatCodes(sMessage) will already be "_____abcdef____" (thus without any tags). And of course its output is exactly the same as there are no tags to replace to begin with.

Example code to reproduce it
code:
function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMsgKind) {
    Debug.Trace(sMessage);
}

of course, the underscores being used in this post (_) represent spaces ;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-17-2008 10:07 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RemoveFormatCodes - by Noixe on 08-17-2008 at 11:57 AM
RE: RemoveFormatCodes - by Spunky on 08-17-2008 at 03:54 PM
RE: RE: RemoveFormatCodes - by Noixe on 08-17-2008 at 04:36 PM
RE: RemoveFormatCodes - by Felu on 08-17-2008 at 04:46 PM
RE: RemoveFormatCodes - by Noixe on 08-17-2008 at 08:47 PM
RE: RemoveFormatCodes - by CookieRevised on 08-17-2008 at 10:07 PM
RE: RemoveFormatCodes - by Noixe on 08-18-2008 at 09:11 AM
RE: RemoveFormatCodes - by CookieRevised on 08-18-2008 at 05:22 PM
RE: RemoveFormatCodes - by Noixe on 08-18-2008 at 08: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