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,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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user