|
|
|
@ -66,15 +66,16 @@ static int pgq_init_module(Octstr *conninfo, char *xtopdir, int max_connections)
|
|
|
|
|
|
|
|
|
|
/* Now look for flags */
|
|
|
|
|
if ((i = octstr_search_char(xcinfo, ';', 0)) > 0) {
|
|
|
|
|
Octstr *x = octstr_copy(xcinfo, i+1, octstr_len(xcinfo));
|
|
|
|
|
Octstr *x = octstr_copy(xcinfo, 0, i);
|
|
|
|
|
|
|
|
|
|
octstr_delete(xcinfo, i, octstr_len(xcinfo));
|
|
|
|
|
octstr_delete(xcinfo, 0, i+1);
|
|
|
|
|
|
|
|
|
|
if (octstr_case_search(x, octstr_imm("internal"), 0) >= 0)
|
|
|
|
|
external_storage = 0;
|
|
|
|
|
if (octstr_case_search(x, octstr_imm("no-archive"), 0) >= 0)
|
|
|
|
|
archive_msgs = 0;
|
|
|
|
|
|
|
|
|
|
octstr_strip_blanks(xcinfo);
|
|
|
|
|
octstr_destroy(x);
|
|
|
|
|
}
|
|
|
|
|
max_conns = max_connections + 1;
|
|
|
|
|