Skip to content

Commit

Permalink
if reconnect-interval is 0 then exit ikachan
Browse files Browse the repository at this point in the history
  • Loading branch information
yappo committed May 19, 2012
1 parent 9e2c361 commit da81af1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ OPTIONS
irc post interval. for Excess Flood

-R, --reconnect-interval
interval of reconnect to irc server
interval of reconnect to irc server. exit application if interval ==
0.

-j, --no-post-with-join
disable to irc message post with channel join
Expand Down
3 changes: 2 additions & 1 deletion README.mkdn
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ irc post interval. for Excess Flood

- -R, --reconnect-interval

interval of reconnect to irc server
interval of reconnect to irc server.
exit application if interval == 0.

- -j, --no-post-with-join

Expand Down
4 changes: 3 additions & 1 deletion bin/ikachan
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ my $create_session; $create_session = sub {
my ($con, $err) = @_;
if (defined $err) {
warn "connect error: $err\n";
exit 1 unless $irc_reconnect_interval;
sleep $irc_reconnect_interval;
$con->disconnect('try reconnect');
} else {
Expand Down Expand Up @@ -312,7 +313,8 @@ irc post interval. for Excess Flood
=item -R, --reconnect-interval
interval of reconnect to irc server
interval of reconnect to irc server.
exit application if interval == 0.
=item -j, --no-post-with-join
Expand Down
3 changes: 2 additions & 1 deletion lib/App/Ikachan.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ irc post interval. for Excess Flood
=item -R, --reconnect-interval
interval of reconnect to irc server
interval of reconnect to irc server.
exit application if interval == 0.
=item -j, --no-post-with-join
Expand Down

0 comments on commit da81af1

Please sign in to comment.