summaryrefslogtreecommitdiffstats
path: root/scripts/xauth.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:26:59 +0000
committerDavid Leadbeater2015-01-10 17:26:59 +0000
commit1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (patch)
tree03d3b85d868a72a6b162c7dca8ea7c0173510618 /scripts/xauth.pl
parent6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (diff)
parent55e10f5aeb6d0559518623a432263d4a73d7614b (diff)
downloadscripts.irssi.org-1bae3cffef57d4d46d0230aa4f44cc52c7671b93.tar.bz2
Merge pull request #83 from obfuscoder/perlcritic-s-z
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);