WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Fix capabilities #101

Closed mdcx closed 4 years ago

mdcx commented 5 years ago

And secondly, PHP Fatal error: Uncaught Error: Call to a member function finished() on string in src/Connection/Capabilities/CapabilityHandler.php:316.

I'm just guessing that the foreach ($this->capabilities as $capability) is supposed to be an array of CapabilityInterfaces such as the Sasl one.

NanoSector commented 5 years ago

Hi there! Thanks a lot for your PR.

In the dependency injection PR (#100) I've revamped the capability system a bit (bad habit I have of doing more things in one...). I would greatly appreciate it if you could give that a go and see if it already fixes these issues :)