Shoutbox

Bug in OnEvent_ChatWndReceiveMessage ? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: Bug in OnEvent_ChatWndReceiveMessage ? (/showthread.php?tid=64316)

Bug in OnEvent_ChatWndReceiveMessage ? by crino on 08-01-2006 at 09:34 AM

I'm try to develope a new script plugin.
In OnEvent_ChatWndReceiveMessage
i wrote:
...
var txt = "New msg:\r\n" + sMessage.substr(5);
Debug.Trace(txt);
return (txt);

in Debug window i can see the correct text but on message window i get a truncate text :S
This happens when the msg is short than 6 chars.
'return sMessage' returns the correct message


Is a bug or i wrong something?


RE: Bug in OnEvent_ChatWndReceiveMessage ? by RaceProUK on 08-01-2006 at 10:23 AM

You don't need a '\r' for the newline, just a '\n'. The '\r' may in fact be the problem here.
And you don't need the parentheses in the return statement.


RE: Bug in OnEvent_ChatWndReceiveMessage ? by crino on 08-01-2006 at 10:51 AM

hi race,
yes i know....parentheses are garbage during my test :p
thanks for your tips :)