A proposed solution is to implement a sending hook, that is, a way to
redirect all commands send through IRCConnection to some other class,
before ultimatly sent to the server. That has multiple benefits;
It would be trivial to implement a throttling mechanism.
It would improve the ability to do unit testing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=843977
A proposed solution is to implement a sending hook, that is, a way to
redirect all commands send through IRCConnection to some other class,
before ultimatly sent to the server. That has multiple benefits;
Logged In: YES
user_id=843977
In CVS there is now a mechanism for intercepting all commands sent to
the server, before they are sent. See
IRCConnection.get/setCommandSender.
Next up is to actually implement a throttle.