From 47da2c9310654d76363ed3d13f1ddbe8c0850510 Mon Sep 17 00:00:00 2001 From: "viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 25 Sep 2008 22:10:36 +0000 Subject: BUILD : 1.7.22 (1451) BUGS : 942 NOTES : We now enforce UnRestrictSAdmin on Unreal and InspIRCd. git-svn-id: svn://svn.anope.org/anope/trunk@1451 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1165 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/protocol/inspircd11.c | 9 +++++++++ src/protocol/unreal32.c | 9 +++++++++ version.log | 8 ++++++-- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 057f95cd8..6b0b9ad81 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Anope Version S V N 09/18 R Removed password truncating. [ #00] 09/15 F Dealt with the nss_dns.so.1 issue on freebsd 7. [ #00] 09/23 F Fixed numerous possible buffer overflows in NS and CS. [ #00] +09/25 F Fixed UnRestrictSAdmin on Unreal and Inspircd. [#942] Provided by Robin Burchell - 2008 09/22 F Enabled UMODE functionality for InspIRCd 1.1 [ #00] diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 17e7f00fd..eb2b3c4a2 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -442,6 +442,15 @@ void inspircd_set_umode(User * user, int ac, char **av) opcnt--; } break; + case 'a': + if (UnRestrictSAdmin) { + break; + } + if (add && !is_services_admin(user)) { + common_svsmode(user, "-a", NULL); + user->mode &= ~UMODE_a; + } + break; case 'r': user->svid = (add ? user->timestamp : 0); if (add && !nick_identified(user)) { diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index d4c526d14..39ec97db4 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -469,6 +469,15 @@ void unreal_set_umode(User * user, int ac, char **av) opcnt--; } break; + case 'a': + if (UnRestrictSAdmin) { + break; + } + if (add && !is_services_admin(user)) { + common_svsmode(user, "-a", NULL); + user->mode &= ~UMODE_a; + } + break; case 'r': if (add && !nick_identified(user)) { common_svsmode(user, "-r", NULL); diff --git a/version.log b/version.log index a60b4134f..d49f79a67 100644 --- a/version.log +++ b/version.log @@ -9,17 +9,21 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="22" VERSION_EXTRA="-svn" -VERSION_BUILD="1450" +VERSION_BUILD="1451" # $Log$ # +# BUILD : 1.7.22 (1451) +# BUGS : 942 +# NOTES : We now enforce UnRestrictSAdmin on Unreal and InspIRCd. +# # BUILD : 1.7.22 (1450) # BUGS : # NOTES : Fixed a number of remaining buffer overflows in NS and CS not addressed by previous commit. # # BUILD : 1.7.22 (1449) # BUGS : -# NOTES : Applied a patch by w00t to fix possible buffer overflows in NS/CS REGISTER. As of now the max pass length is 31 instead of 32 characters. +# NOTES : Applied a patch by w00t to fix possible buffer overflows in NS/CS REGISTER. As of now the max pass length is 31 instead of 32 characters. # # BUILD : 1.7.22 (1448) # BUGS : -- cgit