src/Channels/ChannelBanContainer.cs
/// <summary>
/// Gets a channel ban from a host mask.
/// </summary>
/// <param name="Hostmask">The host mask to find.</param>
/// <returns>A channel ban.</returns>
Gets a channel ban from a host mask.
Gets a channel ban from a host mask .
public ChannelBan GetBan(string Hostmask)
		{
			for (int x=0;x<bans.Count;x++)
				if (((ChannelBan) bans[x]).HostMask.ToLower()==Hostmask.ToLower())
					return (ChannelBan) bans[x];
			throw(new ArgumentOutOfRangeException("Hostmask", Hostmask + " does not exist."));
		}
public ChannelBan GetBan ( string Hostmask ) { for ( int x = 0 ; x < bans . Count ; x ++ ) if ( ( ( ChannelBan ) bans [ x ] ) . HostMask . ToLower ( ) == Hostmask . ToLower ( ) ) return ( ChannelBan ) bans [ x ] ; throw ( new ArgumentOutOfRangeException ( " " , Hostmask + " " ) ) ; }
Gets a channel ban from a host mask.
Gets a channel ban from a host mask .
A channel ban.
A channel ban .
Hostmask
string
The host mask to find.
The host mask to find .