/// <summary> /// Gets the operators. /// </summary> /// <returns></returns> public UserCollection GetOperators() { UserCollection outcol = new UserCollection(); for(int i=0; i<Count; i++) { if( this[i].IsOperator ) outcol.Add( this[i] ); } return outcol; }
/// <summary> /// Gets the users by hostmask. /// </summary> /// <param name="hostmask">The hostmask.</param> /// <returns></returns> public UserCollection GetUsersByHostmask( string hostmask ) { UserCollection outcol = new UserCollection(); for(int i=0; i<Count; i++) { if( wildcmp( hostmask, this[i].NickName, false) ) outcol.Add( this[i] ); } return outcol; }
/// <summary> /// Initializes a new instance of the <see cref="Channel"/> class. /// </summary> /// <param name="protocol">The protocol.</param> /// <param name="name">The name.</param> public Channel(Protocol protocol, string name) { this.name = name; this.protocol = protocol; users = new UserCollection(); }