mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:05:11 +00:00
[MOD] Remove the last [p]based nicks, table moving
This commit is contained in:
parent
198bdb98e9
commit
c975dba852
9 changed files with 344 additions and 208 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue