Donate Share

X-Chat

Tracker: Bugs

5 Python: xchat.command() issue - ID: 2822398
Last Update: Comment added ( )

I'm using a call like this in my Python script:
xchat.command('me '+my_action)
The point is that XChat doesn't add the trailing \001 into it's ACTION
command to IRC server, which should look like
\001, then ACTION <text>, then \001 again
If I type /me <...> in the input field on the channel, it's fine. I can see
it in "raw" log window.
IRC server replies in the raw log that there's a mistake in the command,
and other users on channel see my action as if I was saying "<square
here>ACTION text".
XChat version is 2.8.6 (Gentoo Linux)


friesia ( friesia ) - 2009-07-16 11:09

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2009-11-02 02:17
Sender: https://www.google.com/accounts

I was having the same problem, and it turned out to be a simple bug in the
script. It would read a random line from a file and chomp() it (this is
Perl) to remove the trailing line break. However, chomp() removes only \n,
not \r, so the trailing \001 would get interpreted as a separate command.
Some clients don't care, and will display it as an action anyway. Others
show the literal \001ACTION you described. The fix was just to manually
replace \r with nothing in the command string.


Date: 2009-07-17 06:07
Sender: friesia

No, it isn't. Action is, for example 15 characters. The server cuts it if
longer than ~400 characters (if I input in manually).
Plus, if it was done by the server, I would see the thailing square symbol
in raw log anyway, but I don't.


Date: 2009-07-17 03:57
Sender: lsitu

That looks like a case of the action being too long and it gets truncated
by the server


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.