1.1 --- a/plugins/admin-flatfile/admin-groups.sp Wed Aug 08 21:46:44 2007 +0000
1.2 +++ b/plugins/admin-flatfile/admin-groups.sp Wed Aug 08 23:04:48 2007 +0000
1.3 @@ -141,12 +141,19 @@
1.4 /* Check for immunity again, core should handle double inserts */
1.5 if (StrEqual(key, "immunity"))
1.6 {
1.7 - new GroupId:id = FindAdmGroup(value);
1.8 - if (id != INVALID_GROUP_ID)
1.9 + if (StrEqual(value, "$"))
1.10 {
1.11 - SetAdmGroupImmuneFrom(g_CurGrp, id);
1.12 + SetAdmGroupImmunity(g_CurGrp, Immunity_Default, true);
1.13 + } else if (StrEqual(value, "*")) {
1.14 + SetAdmGroupImmunity(g_CurGrp, Immunity_Global, true);
1.15 } else {
1.16 - ParseError("Unable to find group: \"%s\"", value);
1.17 + new GroupId:id = FindAdmGroup(value);
1.18 + if (id != INVALID_GROUP_ID)
1.19 + {
1.20 + SetAdmGroupImmuneFrom(g_CurGrp, id);
1.21 + } else {
1.22 + ParseError("Unable to find group: \"%s\"", value);
1.23 + }
1.24 }
1.25 }
1.26 }