Skip to content

Commit

Permalink
handle notice/disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaddeus Wooster committed May 3, 2010
1 parent bca5cb6 commit 9116a9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bot.pl
Expand Up @@ -114,9 +114,15 @@ sub make_client {
},
);
},
notice => sub {
my ($self, $line) = @_;
say "NOTICE: $line";
},
disconnect => sub {
my ($self, $reason) = @_;
delete $client->{_nickTimer};
say "disconnected: $_[1]! trying to reconnect...";
delete $client->{rejoins};
say "disconnected: $reason. trying to reconnect...";
$init->();
},
part => sub {
Expand Down

0 comments on commit 9116a9e

Please sign in to comment.