public UserData(EntityManager em, string nick, bool isBot) { _em = em; this.nick = nick; this.isclient = isBot; channels = new Dictionary<ChannelData, UserMode>(); }
public ChannelData(EntityManager em, string name) { _em = em; this.name = name; users = new HashSet<UserData>(); modes = new HashSet<char>(); }
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(); }