Example #1
0
 public IrcChannel(Network network, string channelName)
 {
     Network = network;
     // TODO: cut out the prefix/
     Name = channelName;
     Users = new IrcChannelUserCollection(this);
 }
Example #2
0
 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;
     }
 }
Example #3
0
 public IrcChannelCollection(Network network)
 {
     Network = network;
 }
Example #4
0
 public IrcUserCollection(Network network)
 {
     Network = Network;
 }
Example #5
0
 public Network Get(int id)
 {
     Network network;
     if (!networks.TryGetValue(id, out network)) {
         network = new Network(this, id);
         networks[id] = network;
     }
     return network;
 }