Open marmotz opened 9 years ago
For now, the only way to add commands in Client::_run is to extends this method, reparse message and call parent for base message.
Please provide a simple way to add custom commands (or/and implement all the base commands, see #14).
A good solution should be to add an empty method in Client (by exemple "manageCustomCommand") and call it in default case.
https://github.com/hoaproject/Irc/blob/9024ef75ae40ffdaaa138475980d951d02dfceb9/Client.php#L213-L218 is not enough?
well... no :)
@marmotz Why? This is the flexibility you were waiting for.
maybe...
For now, the only way to add commands in Client::_run is to extends this method, reparse message and call parent for base message.
Please provide a simple way to add custom commands (or/and implement all the base commands, see #14).
A good solution should be to add an empty method in Client (by exemple "manageCustomCommand") and call it in default case.