m_grant: propagate privset changes
This commit is contained in:
parent
bdc87b5f37
commit
910f883959
1 changed files with 5 additions and 0 deletions
|
@ -170,6 +170,11 @@ static int do_grant(struct Client *source_p, struct Client *target_p, const char
|
||||||
privilegeset_unref(target_p->user->privset);
|
privilegeset_unref(target_p->user->privset);
|
||||||
|
|
||||||
target_p->user->privset = 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];
|
const char *modeparv[4];
|
||||||
modeparv[0] = modeparv[1] = target_p->name;
|
modeparv[0] = modeparv[1] = target_p->name;
|
||||||
modeparv[2] = "+";
|
modeparv[2] = "+";
|
||||||
|
|
Loading…
Reference in a new issue