public void RegisterUser( string p, User user ) { _users.ReplaceOrAdd( p, user ); }
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; }
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; }