mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 10:43:13 +02:00
Add ACL support to tsctl - may want to change namespace
This commit is contained in:
@@ -91,7 +91,7 @@ DLLFUNC int m_tsctl(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
|
||||
if (!MyClient(sptr))
|
||||
goto doit;
|
||||
if (!IsAdmin(sptr) && !IsCoAdmin(sptr))
|
||||
if (!IsAdmin(sptr) && !IsCoAdmin(sptr) && !OperClass_evaluateACLPath(sptr->user->operlogin,"tsctl",sptr,NULL,NULL,NULL))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user