Commit Diff


commit - b02dca5598d9151da4f4e9eca6d7bf6fa2dce5fa
commit + 8902697ccceb74b8d7a113de1b7dbbad5905e305
blob - a1d7bb2025b0dcc03e6ca5ae4032a93bfe541018
blob + d25053389d30a168e7673670a16f077c96379459
Binary files botnow and botnow differ
blob - 5f130a3cd207410176173d63c6fd8cc575dff7dc
blob + ae83bbf264c165e07c089dfc36ac84e771111036
--- lib/BotNow/BNC.pm
+++ lib/BotNow/BNC.pm
@@ -30,8 +30,6 @@ my $mailfrom = $conf{mailfrom};
 my $mailname = $conf{mailname};
 my $approval = $conf{approval};
 my $webpanel = $conf{webpanel};
-# File containing IRC networks
-my $netpath = "networks";
 my @networks;
 
 use constant {
@@ -52,6 +50,9 @@ main::cbind("msg", "-", "taillog", \&mtaillog);
 main::cbind("msg", "-", "lastseen", \&mlastseen);
 
 sub init {
+	# File containing IRC networks
+	my $netpath = "networks";
+
 	unveil("/usr/local/bin/figlet", "rx") or die "Unable to unveil $!";
 	unveil("/usr/lib/libc.so.95.1", "r") or die "Unable to unveil $!";
 	unveil("/usr/libexec/ld.so", "r") or die "Unable to unveil $!";