mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 04:03:12 +02:00
Refactor permissions on chghost
This commit is contained in:
@@ -91,7 +91,7 @@ DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
aClient *acptr;
|
||||
|
||||
if (MyClient(sptr) && !IsAnOper(sptr))
|
||||
if (MyClient(sptr) && !OperClass_evaluateACLPath("client:host",sptr,NULL,NULL,NULL))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name,
|
||||
parv[0]);
|
||||
|
||||
Reference in New Issue
Block a user