mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 16:13:13 +02:00
Add ACL support to addomotd
This commit is contained in:
@@ -86,7 +86,7 @@ DLLFUNC CMD_FUNC(m_addomotd)
|
||||
if (!MyConnect(sptr))
|
||||
return 0;
|
||||
|
||||
if (!(IsAdmin(sptr) || IsCoAdmin(sptr)))
|
||||
if (!IsAdmin(sptr) && !IsCoAdmin(sptr) && !OperClass_evaluateACLPath(sptr->user->operlogin,"add:omotd",sptr,NULL,NULL,NULL))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user