[MOD] Remove the last [p]based nicks, table moving

This commit is contained in:
LDA 2024-08-18 23:52:47 +02:00
commit c975dba852
9 changed files with 344 additions and 208 deletions

View file

@ -56,6 +56,8 @@ Main(Array *args, HashMap *env)
int http = 8;
ArgParseStateInit(&state);
/* TODO: Have a smarter way of generating the arg table
* (with a list of structs, with a description and everything) */
while ((flag = ArgParse(&state, args, "vgH:J:")) != -1)
{
switch (flag)
@ -76,6 +78,9 @@ Main(Array *args, HashMap *env)
case 'v':
LogConfigLevelSet(LogConfigGlobal(), LOG_DEBUG);
break;
case '?':
Log(LOG_ERR, "INVALID ARGUMENT GIVEN");
goto end;
}
}
ParseeSetThreads(xmpp, http);
@ -100,6 +105,7 @@ Main(Array *args, HashMap *env)
ParseeInitialiseJIDTable();
ParseeInitialiseOIDTable();
ParseeInitialiseHeadTable();
ParseeInitialiseNickTable();
conf.port = parsee_conf->port;
conf.threads = parsee_conf->http_threads;
@ -159,6 +165,7 @@ end:
CronStop(cron);
CronFree(cron);
ParseeFreeData(conf.handlerArgs);
ParseeDestroyNickTable();
ParseeDestroyOIDTable();
ParseeDestroyHeadTable();
ParseeDestroyJIDTable();