From a69be1f7415571e4d303d7bf42b479b842a64032 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 17 Nov 2017 14:13:08 -0500 Subject: Fix running the bot without a database. Patch by Krytarik. --- lib/ASM/Log.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ASM/Log.pm') 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; } -- cgit v1.2.3