I'm on Windows, using Irssi client irssi-win32-0.8.12.exe.
I'm having problems receiving a file with invalid name:
..nameo_\u2605_name.. (err: DCC can't create file)
How can I strip this invalid part "\u2605" from filename, using script?
This page doesn't help
I think this part of the Irssi source has something to do with it. Starting at line 195
/* if some plugin wants to change the file name/path here.. */
signal_emit("dcc get receive", 1, dcc);
I sure hope Irssi on Windows accepts scripts written in Perl. If this is the case, here's the solution:
The script intercepts "DCC SEND" ctcp messages and replaces all backslashes in the filename into "BSL" string, then forwards altered arguments of message to any other scripts and Irssi. If you want to remove all "\uXXXX" instead, use
s/\\u\w{4}//g
in place ofs/\\/BSL/g
I hope it helps!