Server.Items.HouseRaffleStone.IsAtIPLimit C# (CSharp) Method

IsAtIPLimit() private method

private IsAtIPLimit ( Server.Mobile from ) : bool
from Server.Mobile
return bool
        private bool IsAtIPLimit( Mobile from )
        {
            if ( from.NetState == null )
                return false;

            IPAddress address = from.NetState.Address;
            int tickets = 0;

            foreach ( RaffleEntry entry in m_Entries )
            {
                if ( Utility.IPMatchClassC( entry.Address, address ) )
                {
                    if ( ++tickets >= EntryLimitPerIP )
                        return true;
                }
            }

            return false;
        }