nmelnick / whatbot

whatbot: A sane bot for most chat applications, written in modern Perl
http://www.whatbot.org
10 stars 7 forks source link

IRC disconnect is a full stop #23

Closed nmelnick closed 6 years ago

nmelnick commented 10 years ago

When disconnected by the IRC server (whether server shutdown, network blip, whatever), the reconnect hook fails with a bad number of parameters. It's entirely likely, also, that even with the right number of parameters, it still won't reconnect.

nmelnick commented 10 years ago

Some work done in 6666534

nmelnick commented 9 years ago

unhandled callback exception on event (disconnect, AnyEvent::IRC::Client=HASH(0xd558778), EOF from server xxx): Attribute (handle) does not pass the type constraint because: Validation failed for 'AnyEvent::IRC::Client' with value undef at accessor Whatbot::IO::IRC::handle (defined at xxx/Whatbot/IO/IRC.pm line 18) line 4.

nmelnick commented 9 years ago

This is resolved, however, it seems the disconnect event doesn't fire sometimes. Need to see if this is a bug in the AnyEvent IRC module, or something in whatbot.