diff options
author | Unit 193 <unit193@ubuntu.com> | 2017-11-17 14:13:08 -0500 |
---|---|---|
committer | Janik Kleinhoff <ilbelkyr@shalture.org> | 2017-11-17 19:33:13 +0000 |
commit | a69be1f7415571e4d303d7bf42b479b842a64032 (patch) | |
tree | 1db2bc38ea79fa5077a7248cf63d9c446855fb2e | |
parent | d170ecef189ddf01c499d51aeb683d20cca7f1b7 (diff) | |
download | antispammeta-a69be1f7415571e4d303d7bf42b479b842a64032.tar.bz2 antispammeta-a69be1f7415571e4d303d7bf42b479b842a64032.tar.xz antispammeta-a69be1f7415571e4d303d7bf42b479b842a64032.tar.zst |
Fix running the bot without a database.
Patch by Krytarik.
-rw-r--r-- | lib/ASM/Log.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ASM/Log.pm b/lib/ASM/Log.pm index 45d5531..8c388e9 100644 --- a/lib/ASM/Log.pm +++ b/lib/ASM/Log.pm @@ -121,7 +121,7 @@ sub actionlog byhost => $byhost, bygecos => $bygecos, byaccount => $byaccount, - })->id; + })->id if defined $::db; # $::sn{ow} looks like: #$VAR1 = { # "account" => "afterdeath", @@ -175,7 +175,7 @@ sub incident level => $risk, id => $id, reason => $reason, - }); + }) if defined $::db; return $uuid; } |