Sending pipe char inside a message
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Sending pipe char inside a message

Started by ruspant, 29 April, 2005, 21:24:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruspant

I have an ascii text file which contains a list of emot.
Most of them contains  |  (pipe) char.
If I use this file with Ptokax text support, the main chat "explodes" and the message is splitted.
Obviously pipe chars are seen as message delimiters.
Is there a way to format the message in order to be seen correctly in main chat ?
thx

ruspant

Just found a solution.

replace pipe char ( | )

with the sequence

   |

which is interpreted as a pipechar by chat window.

Greetings

bluebear

#2
I know im a little late.

A DirectConnect protocol message starts with "$" and ends with "|" therefore thease 2 chars can't be used in a chat message. So your need to escape them like this:

"$" escape too -> "$"
"|" escape too -> "|"

When client receives thease escape codes, it will turn them back into "$" and "|".

And acording to the DC wiki "&" escapes into "&", but it should not be nessesary to escape for chat messages. However "&" must escape in $UserCommand :)
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

SMF spam blocked by CleanTalk