diff --git a/src/modules/m_chghost.c b/src/modules/m_chghost.c index dfa90c50e..16fcb077b 100644 --- a/src/modules/m_chghost.c +++ b/src/modules/m_chghost.c @@ -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]);