fixed a parsing bug in admin-flatfile's group parser
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401285
This commit is contained in:
parent
6b18b901ae
commit
ccbdfdbf2b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user