diff options
| author | 2016-01-19 22:32:49 -0700 | |
|---|---|---|
| committer | 2016-01-19 22:32:49 -0700 | |
| commit | 313dc69a71a35f4d6e682ea32e22dfa7cf9eded0 (patch) | |
| tree | 357dec6a69959eab2992b95b93003b8c49f7d795 | |
| parent | e2a301160379d9dfe22d3e7dd752d2c2ef7c2f80 (diff) | |
Suppress a warning when someone was /kill'd without a reason
| -rw-r--r-- | lib/ASM/DB.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/DB.pm b/lib/ASM/DB.pm index 5852282..762d40a 100644 --- a/lib/ASM/DB.pm +++ b/lib/ASM/DB.pm @@ -76,7 +76,7 @@ sub actionlog if ($quitmsg =~ /^Killed \((\S+) \((.*)\)\)$/) { $bynick = $1; $reason = $2 unless ($2 eq '<No reason given>'); - return if ($reason =~ /Nickname regained by services/); + return if (($reason // '') =~ /Nickname regained by services/); $action = 'kill'; } elsif ($quitmsg =~ /^K-Lined$/) { $action = 'k-line'; |
