Represents an irc channel.
Inheritance: IIrcObject, IDisposable
Exemple #1
0
 public ChannelUser(Channel chan, String name)
 {
     channel = chan;
     modes = new List<Mode>();
     List<char> tempPrefixes = new List<char>();
     int i;
     for (i = 0; i < name.Length; i++)
     {
         if (Client.Standard.UserPrefixFlags.ContainsKey(name[i]))
         {
             tempPrefixes.Add(name[i]);
         }
         else
         {
             break;
         }
     }
     nickName = name.Substring(i);
     foreach(char c in tempPrefixes)
     {
         FlagDefinition associatedFlag = Client.Standard.UserPrefixFlags[c];
         modes.Add(new Mode(associatedFlag, FlagArt.Set, nickName));
     }
     prefixes = tempPrefixes.ToArray();
 }
Exemple #2
0
 public UserJoinEventArgs(Channel chan, ChannelUser user, JoinReceivedEventArgs baseArgs)
     : base(baseArgs.BaseLine)
 {
     channel = chan;
     this.user = user;
 }
Exemple #3
0
 public JoinedEventArgs(Channel chan, IrcClient client)
     : base(client)
 {
     channel = chan;
 }