m_grant: propagate privset changes

This commit is contained in:
Ed Kellett 2019-07-27 15:43:33 +01:00
parent bdc87b5f37
commit 910f883959
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -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] = "+";