diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/protocol/inspircd11.c | 9 | ||||
-rw-r--r-- | src/protocol/unreal32.c | 9 | ||||
-rw-r--r-- | version.log | 8 |
4 files changed, 25 insertions, 2 deletions
@@ -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 <w00t@inspircd.org> - 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 : |