Irc icon indicating copy to clipboard operation
Irc copied to clipboard

Allow to add new command in Client::_run

Open marmotz opened this issue 10 years ago • 4 comments

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.

marmotz avatar Jan 01 '15 11:01 marmotz

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

Hywan avatar Jan 04 '15 14:01 Hywan

well... no :)

marmotz avatar Jan 04 '15 15:01 marmotz

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

Hywan avatar Jan 04 '15 15:01 Hywan

maybe...

marmotz avatar Jan 04 '15 20:01 marmotz