summaryrefslogtreecommitdiffstats
path: root/scripts/xauth.pl
diff options
context:
space:
mode:
authorObfuscoder2014-10-24 23:01:30 +0200
committerObfuscoder2014-10-24 23:01:30 +0200
commit55e10f5aeb6d0559518623a432263d4a73d7614b (patch)
treec8125ac40ada1411c240cd68d6535d532849e631 /scripts/xauth.pl
parentff9a44047a299bce4995c22fd6f15851e1b065ee (diff)
downloadscripts.irssi.org-55e10f5aeb6d0559518623a432263d4a73d7614b.tar.bz2
Fix perlcritic issues for all scripts starting with s to z
Diffstat (limited to 'scripts/xauth.pl')
-rw-r--r--scripts/xauth.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/xauth.pl b/scripts/xauth.pl
index 989e3ef..430500d 100644
--- a/scripts/xauth.pl
+++ b/scripts/xauth.pl
@@ -344,7 +344,7 @@ sub read_users() {
# Lets reset @users so we can call this as a function.
@users = ();
- if (!(open XUSERS, "<$x_passfile")) {
+ if (!(open XUSERS, "<", $x_passfile)) {
&create_users;
};
&putlog("Running checks on the userfile.") if ($verbose > 1);
@@ -379,7 +379,7 @@ sub create_users() {
&putlog("Creating basic userfile in $x_passfile. Edit File.");
- if(!(open XUSERS, ">$x_passfile")) {
+ if(!(open XUSERS, ">", $x_passfile)) {
&putlog("Unable to create file $x_passfile");
}
@@ -394,7 +394,7 @@ sub create_users() {
sub create_chans() {
&putlog("Creating basic channelfile in $x_chanfile. Edit File.");
- if(!(open NICKCHANS, ">$x_chanfile")) {
+ if(!(open NICKCHANS, ">", $x_chanfile)) {
&putlog("Unable to create file $x_chanfile");
}
@@ -417,7 +417,7 @@ sub read_chans() {
# Lets reset @users so we can call this as a function.
@chans = ();
- if (!(open NICKCHANS, "<$x_chanfile")) {
+ if (!(open NICKCHANS, "<", $x_chanfile)) {
create_chans;
};
&putlog("Running checks on the channelfile.") if ($verbose > 1);