Closed snyte closed 7 years ago
Hi snyte, thanks for your report!
Are you using the master branch or the architecture-rework branch?
Master
I am unable to reproduce this in architecture-rework. It is probably a module causing the crash.
Well i said master branch
Fatal error: Uncaught exception 'ErrorException' with message 'Undefined index: message in G:\xampp\ircbot\lib\WildPHP\Connection\IrcConnection.php on line 148' in G:\xampp\ircbot\wildphp.php:52 Stack trace:
i suspect it's due to the "[ooo]" part of his join message
Hmm that would require further testing, might be a bug in the parser component. I'll look into it, thanks again for reporting :)
It's not only lupine, just noticed more of them
So quakenet.org part is the issue?
Created a workaround that seems to fix it In vendor\react\stream\src\Stream.php
public function handleData($stream) added lines $data=strtolower($data); $data=str_replace("[ooo]","",$data);
I've been able to confirm this recently by having FatalException live.
It seems the IRC parser we use from the Phergie project is too strict about the IRC RFC, which is often ignored in real-world examples.
I'll have a chat with them about this, but seeing as they specifically made the parser to comply to the RFC, they most likely won't change this. In that case I'll look at creating an alternative or forking it and making it less compliant.
Another solution would be using grawity's parser which doesn't have association and other fanciness: https://github.com/grawity/hacks/tree/master/irc/parsers/php But it seems better aimed at real-world conventions. Do note that this does break API compatibility so it may be better to do this in a future big release.
This should be fixed in 3.0 once #66 is done.
No longer an issue.
Bot always crash when this user appear(quit and join)