From ccbdfdbf2b66c9f737af4c0926410cd4158d25f1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 8 Aug 2007 23:04:48 +0000 Subject: [PATCH] fixed a parsing bug in admin-flatfile's group parser --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401285 --- plugins/admin-flatfile/admin-groups.sp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/admin-flatfile/admin-groups.sp b/plugins/admin-flatfile/admin-groups.sp index caab1f36..5fc7aac1 100644 --- a/plugins/admin-flatfile/admin-groups.sp +++ b/plugins/admin-flatfile/admin-groups.sp @@ -141,12 +141,19 @@ public SMCResult:ReadGroups_KeyValue(Handle:smc, /* Check for immunity again, core should handle double inserts */ if (StrEqual(key, "immunity")) { - new GroupId:id = FindAdmGroup(value); - if (id != INVALID_GROUP_ID) + if (StrEqual(value, "$")) { - SetAdmGroupImmuneFrom(g_CurGrp, id); + SetAdmGroupImmunity(g_CurGrp, Immunity_Default, true); + } else if (StrEqual(value, "*")) { + SetAdmGroupImmunity(g_CurGrp, Immunity_Global, true); } else { - ParseError("Unable to find group: \"%s\"", value); + new GroupId:id = FindAdmGroup(value); + if (id != INVALID_GROUP_ID) + { + SetAdmGroupImmuneFrom(g_CurGrp, id); + } else { + ParseError("Unable to find group: \"%s\"", value); + } } } }