Sending pipe char inside a message


29 December 2022 - PtokaX (20th anniversary edition) released...
11 April 2017 - PtokaX released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX for Windows 10 IoT released...
3 September 2015 - PtokaX released...
16 August 2015 - PtokaX released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX released...
13 April 2014 - PtokaX released...
23 March 2014 - PtokaX testing version build 454 is available.
04 March 2014 - 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.


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 ?


Just found a solution.

replace pipe char ( | )

with the sequence


which is interpreted as a pipechar by chat window.



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 :)
-- is is closed - Use the following mirrors instead
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

SMF spam blocked by CleanTalk