public IrcChannel(Network network, string channelName) { Network = network; // TODO: cut out the prefix/ Name = channelName; Users = new IrcChannelUserCollection(this); }
public IrcUser(Network network, string userString) { if (userString.Contains("!") && userString.Contains("@")) { var tmp = userString.Split(new char[] { '!' }); Nick = tmp[0]; var tmp2 = tmp[1].Split(new char[] { '@' }); User = tmp2[0]; Host = tmp2[1]; } else { Nick = userString; } }
public IrcChannelCollection(Network network) { Network = network; }
public IrcUserCollection(Network network) { Network = Network; }
public Network Get(int id) { Network network; if (!networks.TryGetValue(id, out network)) { network = new Network(this, id); networks[id] = network; } return network; }