1
0
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:
Travis McArthur
2015-07-09 13:38:44 -07:00
parent 50a2eacd97
commit 9e46255922
+2 -2
View File
@@ -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];