mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:05:11 +00:00
Merge branch 'master' of https://git.kappach.at/lda/Parsee into lmdb
This commit is contained in:
commit
b192f4b27f
5 changed files with 58 additions and 10 deletions
|
|
@ -41,6 +41,9 @@ typedef struct ParseeConfig {
|
|||
|
||||
/* ------- DB -------- */
|
||||
char *db_path;
|
||||
|
||||
/* - COMMAND-LINE FLAGS - */
|
||||
int xmpp_threads, http_threads;
|
||||
} ParseeConfig;
|
||||
|
||||
typedef struct ParseeData {
|
||||
|
|
@ -234,7 +237,7 @@ extern void ParseePushHeadTable(char *room, char *id);
|
|||
extern char *ParseeLookupHead(char *room);
|
||||
extern void ParseeDestroyHeadTable(void);
|
||||
|
||||
/* Disables a user/room/MUC's ability to interact from Parsee, and attempts
|
||||
/** Disables a user/room/MUC's ability to interact from Parsee, and attempts
|
||||
* to ban them from rooms where Parsee has the ability to do so ("noflying").
|
||||
* ---------------
|
||||
* Returns: NOTHING
|
||||
|
|
@ -242,7 +245,7 @@ extern void ParseeDestroyHeadTable(void);
|
|||
* Modifies: the database */
|
||||
extern void ParseeGlobalBan(ParseeData *, char *user, char *reason);
|
||||
|
||||
/* Verifies if a user was banned globally. If so (and if {room} is set),
|
||||
/** Verifies if a user was banned globally. If so (and if {room} is set),
|
||||
* tries to ban the user from it.
|
||||
* ---------------
|
||||
* Returns: NOTHING
|
||||
|
|
@ -260,7 +263,7 @@ extern bool ParseeVerifyDMStanza(ParseeData *data, char *room_id, char *id);
|
|||
* Modifies: NOTHING */
|
||||
extern bool ParseeIsAdmin(ParseeData *data, char *user);
|
||||
|
||||
/* Measures Parsee's overall uptime.
|
||||
/** Measures Parsee's overall uptime.
|
||||
* ----------------
|
||||
* Returns: uptime since the call to Main in milliseconds.
|
||||
* Modifies: NOTHING */
|
||||
|
|
@ -301,4 +304,10 @@ extern void ParseeAchievement(const char *func, const char *msg, bool die);
|
|||
* Thrasher: Free */
|
||||
extern char * ParseeGenerateMTO(char *common_id);
|
||||
|
||||
/** Sets the amount of XMPP/HTTP threads to use
|
||||
* ----------------------
|
||||
* Returns: NOTHING
|
||||
* Modifies: the Parsee config */
|
||||
extern void ParseeSetThreads(int xmpp, int http);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue