hoaproject / Irc

The Hoa\Irc library.
https://hoa-project.net
25 stars 8 forks source link

Allow to add new command in Client::_run #15

Open marmotz opened 9 years ago

marmotz commented 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.

Hywan commented 9 years ago

https://github.com/hoaproject/Irc/blob/9024ef75ae40ffdaaa138475980d951d02dfceb9/Client.php#L213-L218 is not enough?

marmotz commented 9 years ago

well... no :)

Hywan commented 9 years ago

@marmotz Why? This is the flexibility you were waiting for.

marmotz commented 9 years ago

maybe...