diff options
| author | 2015-03-08 01:59:59 +0400 | |
|---|---|---|
| committer | 2015-03-08 01:59:59 +0400 | |
| commit | c9fff1ee6bde3e5f345781556508bd4612dbd58a (patch) | |
| tree | 039b96c6174664aad3a514e53d66bc3570a9dc91 /modules/util.pl | |
| parent | d45c28ec36ebe67a632aad27989bb97a697e09fb (diff) | |
Use defined-or operator in some more places for clarity
e.g. $foo //= 'defaultvalue'
Diffstat (limited to 'modules/util.pl')
| -rw-r--r-- | modules/util.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/util.pl b/modules/util.pl index cb66919..b3b612d 100644 --- a/modules/util.pl +++ b/modules/util.pl @@ -239,7 +239,7 @@ sub getNickIP if (defined($::sn{$nick}{ip})) { return $::sn{$nick}{ip}; } - $host = $::sn{$nick}{host} if (!defined($host)); + $host //= $::sn{$nick}{host}; my $ip = getHostIP(undef, $host); if (defined($ip)) { $::sn{$nick}{ip} = $ip; |
