]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
minor change for code critic
authorAlex Checca <redacted>
Fri, 15 Jan 2016 07:14:45 +0000 (02:14 -0500)
committerAlex Checca <redacted>
Fri, 15 Jan 2016 07:14:45 +0000 (02:14 -0500)
scripts/xdcc_autoget.pl

index c3e22cd4ab656230cc3214d084e7c08311b194b4..99af82a14d7d5e4b5c251721c13c4cd8fc720809 100644 (file)
@@ -378,7 +378,7 @@ sub ag_skip
 {
        my($botcounter) = @_;
        my @packlist = ();
-       try {my @packlist = @{$packs[$botcounter]} or die;}     #workaround for @{} being dumb if an array inside of an array is empty 
+       try {my @packlist = @{$packs[$botcounter]};}    #workaround for @{} being dumb if an array inside of an array is empty 
        catch {};
        #Irssi::print "ag_skip $msgflag $episodicflag $episode $#packs $packcounter $#terms $termcounter $#bots $botcounter"; 
        &ag_remtimeouts($botcounter);   #stop any other skips
@@ -745,7 +745,7 @@ sub ag_stop
 
 sub ag_restart
 {
-       $statusbarmessage = "Inactive";
+       $statusbarmessage = "No Connection";
        Irssi::signal_remove("dcc request", "ag_opendcc");
        Irssi::signal_remove("message irc notice", "ag_getmsg");
        
git clone https://git.99rst.org/PROJECT