Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }