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:
David Anderson 2007-08-08 23:04:48 +00:00
parent 6b18b901ae
commit ccbdfdbf2b

View File

@ -141,6 +141,12 @@ public SMCResult:ReadGroups_KeyValue(Handle:smc,
/* Check for immunity again, core should handle double inserts */
if (StrEqual(key, "immunity"))
{
if (StrEqual(value, "$"))
{
SetAdmGroupImmunity(g_CurGrp, Immunity_Default, true);
} else if (StrEqual(value, "*")) {
SetAdmGroupImmunity(g_CurGrp, Immunity_Global, true);
} else {
new GroupId:id = FindAdmGroup(value);
if (id != INVALID_GROUP_ID)
{
@ -150,6 +156,7 @@ public SMCResult:ReadGroups_KeyValue(Handle:smc,
}
}
}
}
return SMCParse_Continue;
}