static int trusts_connectdb(void) {
if(!trustsdb) {
- trustsdb = dbapi2open(NULL, "trusts");
+ trustsdb = dbapi2open("sqlite", "trusts");
if(!trustsdb) {
Error("trusts", ERR_WARNING, "Unable to connect to db -- not loaded.");
return 0;
nth.maxpernode = 0;
nth.nodebits = (irc_in_addr_is_ipv4(&nth.ip))?128:64;
+ if (nth.bits < nth.nodebits)
+ nth.nodebits = nth.bits;
+
th = th_copy(&nth);
if(!th)
return NULL;