From 89d565caf938476488baebdb5b3cc4de42bf1779 Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Fri, 21 Oct 2022 18:04:04 +0200 Subject: Only load ASM::DB if use of database is not disabled. This drops DBIx::Class as requirement otherwise. --- meta.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.pl b/meta.pl index 60e5be7..9a8a48f 100755 --- a/meta.pl +++ b/meta.pl @@ -27,7 +27,6 @@ use ASM::Services; use ASM::Log; use ASM::Commander; use ASM::Classes; -use ASM::DB; use ASM::Fifo; use ASM::Statsp; @@ -165,6 +164,7 @@ sub init { # compatibility with that. $dsn = sprintf 'DBI:mysql:database=%s;host=%s;port=%s', @{ $::mysql }{'db', 'host', 'port'}; } + require ASM::DB; $::db = ASM::DB->connect($dsn, $::mysql->{user}, $::mysql->{pass}); } $conn = $irc->newconn( Server => $host, -- cgit v1.2.3