Commit Diff
Diff:
0dc24f131c969049a101b195a13d2774ca2a3cd1
a87dee89d63a5dbcb0f7de0504736635f69c7449
Commit:
a87dee89d63a5dbcb0f7de0504736635f69c7449
Tree:
fdbb5fa0a7019ac7462159ac2f62b7bf150a0e49
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Tue Mar 7 17:05:19 2023 UTC
Message:
Move variable definitions
blob - ca00848cc9c77d18341866ceda9e7294ee276a9f
blob + 37ceb7f98a2ea9641a595e4f91ed3d01ddc5f2bb
--- botnow
+++ botnow
@@ -10,6 +10,10 @@ use OpenBSD::Unveil;
use File::Copy qw(copy);
use File::Basename;
+# Path to configuration file
+my $confpath = "botnow.conf";
+my $backupspath = "/home/botnow/backups/";
+
# Returns date in YYYYMMDD format
sub date {
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
@@ -80,10 +84,6 @@ close $fh;
return "true";
}
-# Path to configuration file
-my $confpath = "botnow.conf";
-my $backupspath = "/home/botnow/backups/";
-
# Configuration variables will be stored in key => value pairs
our %conf;
IRCNow