mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 22:45:12 +00:00
[MOD] Use server_base instead of the API host
This wasn't an issue because the server I test on has the same API host as its name.
This commit is contained in:
parent
b773ebabc2
commit
dd180ee3f4
10 changed files with 29 additions and 28 deletions
|
|
@ -9,10 +9,7 @@
|
|||
|
||||
#include <Parsee.h>
|
||||
|
||||
#define BotInitialise() char *profile = StrConcat(4, \
|
||||
"@", data->config->sender_localpart, \
|
||||
":", data->config->homeserver_host \
|
||||
); \
|
||||
#define BotInitialise() char *profile = ParseeMXID(data); \
|
||||
char *id = GrabString(event, 1, "room_id")
|
||||
|
||||
#define BotRequired(prop) prop = HashMapGet(cmd->arguments, #prop); \
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ typedef struct ParseeConfig {
|
|||
char *sender_localpart;
|
||||
char *namespace_base;
|
||||
|
||||
char *server_base;
|
||||
char *listen_as;
|
||||
char *media_base;
|
||||
int port;
|
||||
|
|
|
|||
|
|
@ -32,4 +32,6 @@ extern size_t StrLines(char **split);
|
|||
/* Creates a full zone covering every part of the split */
|
||||
extern StringRect StrFullRect(char **split);
|
||||
|
||||
extern char Str
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue