]> git.donarmstrong.com Git - infobot.git/blobdiff - src/modules.pl
SQLite2 also supported
[infobot.git] / src / modules.pl
index a1cc28f256bfaca0a094e694aafa6a13dd5c82ce..17bab22094ea91ab8ba85f952aaf34dd2da86242 100644 (file)
@@ -52,7 +52,7 @@ sub loadDBModules {
     my $f;
     # TODO: use function to load module.
 
-    if ($param{'DBType'} =~ /^(mysql|SQLite|pgsql)$/i) {
+    if ($param{'DBType'} =~ /^(mysql|SQLite(2)?|pgsql)$/i) {
        eval "use DBI";
        if ($@) {
            &ERROR("No support for DBI::" . $param{'DBType'} . ", exiting!");