1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

JSON-RPC: Fix missing mtag issued by in user.part

We use mtag_add_issued_by() to prepare it but then pass NULL
in do_cmd() so it was basically useless.

Also compile fix for previous (forgot to git ammend)
This commit is contained in:
Bram Matthys
2026-02-21 16:21:47 +01:00
parent ec4ccbde82
commit b467e4e147
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ void rpc_log_send(Client *client, json_t *request, json_t *params)
json_t *result;
json_error_t *jerr;
const char *msg, *level, *subsystem, *event_id, *log_source, *timestamp;
const char *serialized;
char *serialized;
MessageTag *mtags = NULL;
REQUIRE_PARAM_STRING("msg", msg);
+1 -1
View File
@@ -683,7 +683,7 @@ RPC_CALL_FUNC(rpc_user_part)
args[3] = reason;
args[4] = NULL;
mtag_add_issued_by(&mtags, client, NULL);
do_cmd(&me, NULL, force ? "SAPART" : "SVSPART", reason ? 4 : 3, args);
do_cmd(&me, mtags, force ? "SAPART" : "SVSPART", reason ? 4 : 3, args);
safe_free_message_tags(mtags);
/* Return result. Always 'true' at the moment.