From b467e4e1474193f85285c80a5d4d57618db49a01 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 21 Feb 2026 16:21:47 +0100 Subject: [PATCH] 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) --- src/modules/rpc/log.c | 2 +- src/modules/rpc/user.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rpc/log.c b/src/modules/rpc/log.c index 67d695e09..1cf1c187e 100644 --- a/src/modules/rpc/log.c +++ b/src/modules/rpc/log.c @@ -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); diff --git a/src/modules/rpc/user.c b/src/modules/rpc/user.c index df9abaf83..41e53f7e3 100644 --- a/src/modules/rpc/user.c +++ b/src/modules/rpc/user.c @@ -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.