Process ASCII/Escaped Characters

Discussion about XChat on Linux and other unix like systems.

Process ASCII/Escaped Characters

Postby RedPenguin » 29 Nov 2010 13:08

I have tried Google and others but cannot find the following:

How does one tell X-Chat to process ascii/escaped characters?

For example, mIRC has $chr(1)
irssi has /eval \001

What would be the equivalent in X-Chat?
RedPenguin
 
Posts: 2
Joined: 29 Nov 2010 13:05

Re: Process ASCII/Escaped Characters

Postby Khisanth » 01 Dec 2010 00:24

%001 if you have input_perc_ascii enabled but that is only when you are typing it into the inputbox. If you are trying to use it somewhere else the answer would be different
Khisanth
 
Posts: 1724
Joined: 10 Jun 2004 05:23

Re: Process ASCII/Escaped Characters

Postby RedPenguin » 01 Dec 2010 04:13

Khisanth wrote:%001 if you have input_perc_ascii enabled but that is only when you are typing it into the inputbox. If you are trying to use it somewhere else the answer would be different


Thank you, well basically i want to put it in User Commands.

EDIT: I got %001 working perfectly in User Commands, but even with turning that setting on, %001 and others just get shown in the channel as literally %001.
They are not even being translated.

Do I need to type some command in first like how irssi requires /eval first?

Another issue is, even though I got my User Commands working with &2 so that I can type in /cact blah blah blah, they wish to use getstr like this

getstr i "csvsreply %c ::NICK PRIVMSG %c :%001ACTION %001" "Enter msg here"

Only problem is, getstr seems to put what the user writes in input box at the end, but what the user types in has to be after ACTION and before the second %001, I guess really no way to fix that right?
RedPenguin
 
Posts: 2
Joined: 29 Nov 2010 13:05


Return to XChat

Who is online

Users browsing this forum: No registered users and 2 guests