Use MayHavePrivilege for oper:message

This commit is contained in:
Ed Kellett 2021-05-20 08:08:47 +01:00
parent 396edc6fbd
commit 16a2d0c9d3

View file

@ -103,7 +103,7 @@ allow_message(struct Client *source_p, struct Client *target_p)
return true; return true;
/* XXX: controversial? allow opers to send through +g */ /* XXX: controversial? allow opers to send through +g */
if (HasPrivilege(source_p, "oper:message")) if (MayHavePrivilege(source_p, "oper:message"))
return true; return true;
if (accept_message(source_p, target_p)) if (accept_message(source_p, target_p))