Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ ROM ➜ Running the server ➜ MXP and snooping

MXP and snooping

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by TDM   (1 post)  Bio
Date Tue 18 May 2004 04:54 PM (UTC)
Message
After getting MXP to successfuly install on my windows version of ROM (compiled in MSVC6) It works as it should for everyone, the only problem I have is when a player is being snooped the diffrent symbols aren't displayed properly. The <, >, and & Show up as &lt, &gt, &amp
And the mxp tags are fully shown instead of being hidden and ignored.

Any ideas, or pointers as to what and where I would need to tweak these?
Top

Posted by Nick Gammon   Australia  (23,052 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 18 May 2004 09:42 PM (UTC)
Message
Sounds like they are being converted twice.

Judging by the SMAUG source, which is probably similar in the output area, the snooping is done at the "flush_buffer" stage, which is *after* < becomes &lt;.

This makes things a bit messy because you have four possibilities here:


  1. Neither of you are using MXP
  2. The snoopee is using MXP but not the snooper
  3. The snooper is using MXP but not the snoopee
  4. You are both using MXP


I think in the last case you would see tags converted twice, (eg. < becomes &lt; ) and in the first case it wouldn't matter.

I think the solution is to move the snoop code from flush_buffer, to write_to_buffer.

That way the decision about how to process MXP tags is done for the target of the write, and not done twice.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,408 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.