src/Channels/ChannelUserContainer.cs
/// <summary>
/// Gets a user from his/her nick name.
/// </summary>
/// <param name="Nickname">The nick name to find.</param>
/// <returns>A channel user.</returns>
Gets a user from his/her nick name.
Gets a user from his / her nick name .
public ChannelUser GetUser(string Nickname)
		{
			for (int x=0;x<users.Count;x++)
				if (((ChannelUser) users[x]).User.Nick.ToLower()==Nickname.ToLower())
					return GetUser(x);
			throw(new ArgumentOutOfRangeException("Nickname", Nickname + " does not exist."));
		}
public ChannelUser GetUser ( string Nickname ) { for ( int x = 0 ; x < users . Count ; x ++ ) if ( ( ( ChannelUser ) users [ x ] ) . User . Nick . ToLower ( ) == Nickname . ToLower ( ) ) return GetUser ( x ) ; throw ( new ArgumentOutOfRangeException ( " " , Nickname + " " ) ) ; }
Gets a user from his/her nick name.
Gets a user from his / her nick name .
A channel user.
A channel user .
Nickname
string
The nick name to find.
The nick name to find .