From 3a919d0edf4a0b597d5a1903e39b1d087131e7b5 Mon Sep 17 00:00:00 2001 From: "John R. Dennison" Date: Sun, 25 Apr 2021 02:23:27 +0000 Subject: [PATCH] Rename .irpg.conf -> irpg.conf --- idlebot.pl | 14 +++++++------- .irpg.conf => irpg.conf | 0 2 files changed, 7 insertions(+), 7 deletions(-) rename .irpg.conf => irpg.conf (100%) diff --git a/idlebot.pl b/idlebot.pl index 4338a44..ae2bf00 100755 --- a/idlebot.pl +++ b/idlebot.pl @@ -24,7 +24,7 @@ # execute any command, or possibly even change your password. I sincerely # suggest that you exercise extreme caution when giving someone admin # access to your bot, or that you disable the PEVAL command for non-owner -# accounts in your config file, .irpg.conf +# accounts in your config file, irpg.conf use strict; use warnings; @@ -39,7 +39,7 @@ readconfig(); my $version = "3.1.2"; -# command line overrides .irpg.conf +# command line overrides irpg.conf GetOptions(\%opts, "help|h", "verbose|v", @@ -2385,13 +2385,13 @@ sub writedb { } sub readconfig { - if (! -e ".irpg.conf") { - debug("Error: Cannot find .irpg.conf. Copy it to this directory, ". + if (! -e "irpg.conf") { + debug("Error: Cannot find irpg.conf. Copy it to this directory, ". "please.",1); } else { - open(CONF,"<.irpg.conf") or do { - debug("Failed to open config file .irpg.conf: $!",1); + open(CONF,") { @@ -2404,7 +2404,7 @@ sub readconfig { if (lc($val) eq "on" || lc($val) eq "yes") { $val = 1; } elsif (lc($val) eq "off" || lc($val) eq "no") { $val = 0; } if ($key eq "die") { - die("Please edit the file .irpg.conf to setup your bot's ". + die("Please edit the file irpg.conf to setup your bot's ". "options. Also, read the README file if you haven't ". "yet.\n"); } diff --git a/.irpg.conf b/irpg.conf similarity index 100% rename from .irpg.conf rename to irpg.conf