mirror of
https://github.com/anope/anope.git
synced 2026-07-03 01:13:13 +02:00
Split up db/conf/lib/locale install directories, and allow alternate ones to be specified at runtime
This commit is contained in:
@@ -264,7 +264,7 @@ static dbFILE *open_db_read(const char *service, const char *filename, int versi
|
||||
int myversion;
|
||||
|
||||
f = new dbFILE;
|
||||
strscpy(f->filename, filename, sizeof(f->filename));
|
||||
strscpy(f->filename, (db_dir + "/" + filename).c_str(), sizeof(f->filename));
|
||||
f->mode = 'r';
|
||||
fp = fopen(f->filename, "rb");
|
||||
if (!fp)
|
||||
|
||||
Reference in New Issue
Block a user