Irssi core bugs

All the Irssi bugs should go here, please select the proper version when reporting the bug.

Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
| Tasklist |

FS#764 - Add a method to filter commands sent from the clients

Attached to Project: Irssi core bugs
Opened by Nicolas Pouillon (nipo) - Friday, 23 July 2010, 07:58 GMT+2
Task Type Feature Request
Category proxy
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Irssi SVN
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Trying to implement a push-aware bouncer (http://colloquy.mobi/bouncers.html) for colloquy mobile (CM) as an Irssi perl script, I ran in the following problem:

CM sends (non std) PUSH irc messages to tell the bouncer about the device information, so:
* bouncer has to be able to intercept them
* bouncer should not forward them to the actual server

Once proxy handles the command its way through handle_client_cmd(), it passes unhandled messages (including PUSH) directly to irc_send_cmd(). AFAIK this does not emit any signal. So we cant see/filter PUSH messages.
I hope I didn't miss another signal.

For the code posted in http://static.ssji.net/colloquy_push.pl.txt, I added the attached patch to filter just PUSH messages, but I assume this could be transformed in a broader way to intercept client trafic.
This task depends upon

Loading...