Exemplo n.º 1
0
 public UserData(EntityManager em, string nick, bool isBot)
 {
     _em = em;
     this.nick = nick;
     this.isclient = isBot;
     channels = new Dictionary<ChannelData, UserMode>();
 }
Exemplo n.º 2
0
        public ChannelData(EntityManager em, string name)
        {
            _em = em;
            this.name = name;

            users = new HashSet<UserData>();
            modes = new HashSet<char>();
        }
Exemplo n.º 3
0
        internal Connection(ConnectionSettings settings, Action<IRCQEvent> enqueuer)
        {
            IrcAuthenticated = false;

            _settings = settings;
            Enqueue = enqueuer;
            Entities = new EntityManager(_settings.DefaultNick);

            _connectorThread = new Thread(() => {
                try {
                    Connect();
                } catch (Exception ex) {
                    if (ex is ThreadAbortException) throw;
                    else Disconnect(ServerStatus.ConnectFailed, ex.GetType().Name + ": " + ex.Message);
                }
            });
            _connectorThread.Start();
        }