From 9e46255922637d0d0e709526f2a52cc87f4f94df Mon Sep 17 00:00:00 2001 From: Travis McArthur Date: Thu, 9 Jul 2015 13:38:44 -0700 Subject: [PATCH] Update security in m_message --- src/modules/m_message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_message.c b/src/modules/m_message.c index 41282b5d1..4821a7411 100644 --- a/src/modules/m_message.c +++ b/src/modules/m_message.c @@ -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];