diff options
| author | David Leadbeater | 2015-01-10 17:26:59 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:26:59 +0000 |
| commit | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (patch) | |
| tree | 03d3b85d868a72a6b162c7dca8ea7c0173510618 /scripts/xauth.pl | |
| parent | 6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (diff) | |
| parent | 55e10f5aeb6d0559518623a432263d4a73d7614b (diff) | |
| download | scripts.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.pl | 8 |
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); |
