mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-29 22:42:24 +01:00
Update security on register-only messages umode
This commit is contained in:
parent
0f84e1c417
commit
f9a7cdaeab
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ char *regonlymsg_pre_usermsg(aClient *sptr, aClient *target, char *text, int not
|
|||
{
|
||||
if (IsRegOnlyMsg(target) && !IsServer(sptr) && !IsULine(sptr) && !IsLoggedIn(sptr))
|
||||
{
|
||||
if (IsOper(sptr))
|
||||
if (ValidatePermissionsForPath("override:message:regonly",sptr,target,NULL,text))
|
||||
return text; /* TODO: this is actually an override */
|
||||
|
||||
sendto_one(sptr, err_str(ERR_NONONREG), me.name, sptr->name, target->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue