mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[ADD] Respect MIME, start bridging leaves/kicks
Wow, this one _wasn't_ pushed at 3AM, Outstanding.
This commit is contained in:
parent
4d055f3688
commit
43b3f8aaf5
8 changed files with 146 additions and 24 deletions
|
|
@ -48,6 +48,9 @@ RouteHead(RouteRoomAck, arr, argp)
|
|||
char *creator = NULL, *muc_name = NULL, *chatid = NULL;
|
||||
|
||||
|
||||
/* TODO: If an ACK request maps to a MUC that has a chat ID,
|
||||
* DO NOT create a new one, and instead make a new mapping to
|
||||
* the previous one. */
|
||||
response = ASVerifyRequest(args);
|
||||
if (response)
|
||||
{
|
||||
|
|
@ -67,7 +70,6 @@ RouteHead(RouteRoomAck, arr, argp)
|
|||
if (ParseeManageBan(args->data, muc, NULL))
|
||||
{
|
||||
HttpResponseStatus(args->ctx, HTTP_METHOD_NOT_ALLOWED);
|
||||
Log(LOG_INFO, "Nofly...");
|
||||
response = MatrixCreateError(
|
||||
"M_NOT_FOUND",
|
||||
"XMPP MUC is banned from being accessed on this instance"
|
||||
|
|
@ -94,7 +96,6 @@ RouteHead(RouteRoomAck, arr, argp)
|
|||
);
|
||||
if (!id)
|
||||
{
|
||||
Log(LOG_INFO, "No ID");
|
||||
HttpResponseStatus(args->ctx, HTTP_INTERNAL_SERVER_ERROR);
|
||||
response = MatrixCreateError(
|
||||
"M_UNKNOWN",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue