From acdcedfa7099659be22df3dd57ec4926809dc1a6 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Fri, 4 Sep 2015 03:44:40 +0000 Subject: Allow running without a database This is mostly a workaround for the DB being a bit of a PITA to set up, but not all we do requires a DB so we might as well offer to run without one. --- config-default/commands.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config-default') diff --git a/config-default/commands.xml b/config-default/commands.xml index 5674fac..6e12076 100644 --- a/config-default/commands.xml +++ b/config-default/commands.xml @@ -123,6 +123,11 @@ privmsg($event->replyto, "I am set to run without a database, fool."); + return; + } + my $dbh = $::db->{DBH}; if ($1 eq 'log') { $dbh = $::db->{DBH_LOG}; @@ -175,6 +180,7 @@ query($channel, $nuh[0], $nuh[2], $nuh[4]); @@ -183,6 +189,7 @@ privmsg($event->replyto, "I don't see $nick in my state tracking database, so I can't run any queries on their info, sorry :(" . @@ -223,6 +230,7 @@