mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 18:33:13 +02:00
Update security in m_message
This commit is contained in:
@@ -616,7 +616,7 @@ ConfigItem_deny_dcc *fl;
|
||||
char *end, realfile[BUFSIZE];
|
||||
int size_string, ret;
|
||||
|
||||
if ((*text != 1) || ValidatePermissionsForPath("immune:dcc",sptr,targetcli,NULL,NULL) || (targetcli && IsOper(targetcli)))
|
||||
if ((*text != 1) || ValidatePermissionsForPath("immune:dcc",sptr,targetcli,NULL,NULL) || (targetcli && ValidatePermissionsForPath("self:getbaddcc",targetcli,NULL,NULL,NULL)))
|
||||
return 1;
|
||||
|
||||
ctcp = &text[1];
|
||||
@@ -701,7 +701,7 @@ ConfigItem_deny_dcc *fl;
|
||||
char *end, realfile[BUFSIZE];
|
||||
int size_string;
|
||||
|
||||
if ((*text != 1) || ValidatePermissionsForPath("immune:dcc",from,to,NULL,NULL)|| IsOper(to))
|
||||
if ((*text != 1) || ValidatePermissionsForPath("immune:dcc",from,to,NULL,NULL)|| ValidatePermissionsForPath("self:getbaddcc",to,NULL,NULL,NULL))
|
||||
return 1;
|
||||
|
||||
ctcp = &text[1];
|
||||
|
||||
Reference in New Issue
Block a user