core/AdminCache.cpp
changeset 729 110c14c99545
parent 673 fc1d50579d06
child 907 3821e1a4ad14
     1.1 --- a/core/AdminCache.cpp	Wed May 02 22:49:28 2007 +0000
     1.2 +++ b/core/AdminCache.cpp	Thu May 03 03:45:53 2007 +0000
     1.3 @@ -1184,7 +1184,7 @@
     1.4  {
     1.5  	/** 
     1.6  	 * Zeroth, if the targeting AdminId is INVALID_ADMIN_ID, targeting fails.
     1.7 -	 * First, if the targetted AdminId is INVALID_ADMIN_ID, targeting succeeds.
     1.8 +	 * First, if the targeted AdminId is INVALID_ADMIN_ID, targeting succeeds.
     1.9  	 */
    1.10  
    1.11  	if (id == INVALID_ADMIN_ID)
    1.12 @@ -1210,21 +1210,21 @@
    1.13  	}
    1.14  
    1.15  	/** 
    1.16 -	 * Second, if the targeting admin is root, targeting suceeds.
    1.17 +	 * Second, if the targeting admin is root, targeting succeeds.
    1.18  	 */
    1.19  	if (pUser->eflags & ADMFLAG_ROOT)
    1.20  	{
    1.21  		return true;
    1.22  	}
    1.23  
    1.24 -	/** Fourth, if the targetted admin has global immunity, targeting fails. */
    1.25 +	/** Fourth, if the targeted admin has global immunity, targeting fails. */
    1.26  	if (pTarget->immune_global)
    1.27  	{
    1.28  		return false;
    1.29  	}
    1.30  
    1.31  	/** 
    1.32 -	 * Fifth, if the targetted admin has default immunity 
    1.33 +	 * Fifth, if the targeted admin has default immunity 
    1.34  	 *  and the admin belongs to no groups, targeting fails.
    1.35  	 */
    1.36  	if (pTarget->immune_default && pUser->grp_count < 1)
    1.37 @@ -1233,7 +1233,7 @@
    1.38  	}
    1.39  
    1.40  	/** 
    1.41 -	 * Sixth, if the targetted admin has specific immunity from the
    1.42 +	 * Sixth, if the targeted admin has specific immunity from the
    1.43  	 *  targeting admin via group immunities, targeting fails.
    1.44  	 */
    1.45  	//:TODO: speed this up... maybe with trie hacks.