summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/xdcc_autoget.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/xdcc_autoget.pl b/scripts/xdcc_autoget.pl
index c097b1e..1cf52b9 100644
--- a/scripts/xdcc_autoget.pl
+++ b/scripts/xdcc_autoget.pl
@@ -23,6 +23,7 @@
# ag_search_file : where your search list is stored
use strict;
+use warnings;
use Irssi;
use Text::ParseWords;
@@ -124,7 +125,7 @@ sub ag_init #init system
sub ag_initserver #init server
{
- $server = "";
+ $server = " ";
$server = Irssi::active_server(); #keep trying to get server until it works, then continue after 5 seconds
if ($server !~ m/^Irssi::Irc::Server=HASH/) {Irssi::timeout_add_once(1000, sub {&ag_initserver;} , []);}
else {Irssi::timeout_add_once(5000, sub {&ag_run;} , []);}