Commit 396c12c6 authored by Friedrich Delgado's avatar Friedrich Delgado Committed by Sébastien Helleu

recoverop.pl 0.1.2: fix error caused by wait of zero seconds

parent d89a71df
......@@ -48,7 +48,7 @@ use warnings;
weechat::register(
"recoverop", "AYANOKOUZI, Ryuunosuke",
"0.1.1", "GPL3", "recover channel operator in empty channel",
"0.1.2", "GPL3", "recover channel operator in empty channel",
"", ""
);
my $script_name = "recoverop";
......@@ -91,7 +91,7 @@ sub part_join {
weechat::buffer_search( "irc", "$server.$channel" );
if ($buffer)
{
my $sec = int rand 10;
my $sec = 1 + int rand 10;
weechat::command( $buffer, "/wait ${sec}s /cycle" );
if ($conf->{mode})
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment