Add oper:dehelper

This commit is contained in:
Ed Kellett 2019-08-03 06:58:05 +01:00
parent f510983eeb
commit 4a4b20955f
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -53,9 +53,9 @@ mo_dehelper(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
{ {
struct Client *target_p; struct Client *target_p;
if (!IsOperAdmin(source_p)) if (!HasPrivilege(source_p, "oper:dehelper"))
{ {
sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "admin"); sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "dehelper");
return; return;
} }