summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c9
1 files changed, 9 insertions, 0 deletions
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);