From 910f88395994e5a73eb9c22059640d1c177091e7 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sat, 27 Jul 2019 15:43:33 +0100 Subject: [PATCH] m_grant: propagate privset changes --- modules/m_grant.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/m_grant.c b/modules/m_grant.c index ed097004..795f6c64 100644 --- a/modules/m_grant.c +++ b/modules/m_grant.c @@ -170,6 +170,11 @@ static int do_grant(struct Client *source_p, struct Client *target_p, const char privilegeset_unref(target_p->user->privset); target_p->user->privset = privset; + + if (privset != NULL) + sendto_server(NULL, NULL, CAP_TS6, NOCAPS, ":%s OPER %s %s", + use_id(target_p), target_p->user->opername, privset->name); + const char *modeparv[4]; modeparv[0] = modeparv[1] = target_p->name; modeparv[2] = "+";