From e2674fd33a6f16875e6278036337dac38d76ebce Mon Sep 17 00:00:00 2001 From: Travis McArthur Date: Sun, 5 Jul 2015 11:40:02 -0700 Subject: [PATCH] Refactor permissions on chghost --- src/modules/m_chghost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);