Exemple #1
0
 public void RegisterUser( string p, User user )
 {
     _users.ReplaceOrAdd( p, user );
 }
Exemple #2
0
 public User LookUpOrRegisterUser( NickUserHost userhost )
 {
     var nick = userhost.NickName;
     var user = LookUpUser( nick );
     if ( null == user ) {
         user = new User {
             NickUserHost = userhost,
             Server = this
         };
         RegisterUser( nick, user );
     }
     return user;
 }
 public QuitEventArgs( User user, string quitMessage )
 {
     User = user;
     QuitMessage = quitMessage;
 }
Exemple #4
0
 protected virtual void OnQuit( User user, string reason )
 {
     var handler = Quit;
     if ( null != handler ) {
         handler( this, new QuitEventArgs( user, reason ) );
     }
 }
 public PrivMsgReceivedEventArgs( User origin, ITargetable target, string message )
 {
     Origin = origin;
     Target = target;
     Message = message;
 }