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(); }
public UserJoinEventArgs(Channel chan, ChannelUser user, JoinReceivedEventArgs baseArgs) : base(baseArgs.BaseLine) { channel = chan; this.user = user; }
public JoinedEventArgs(Channel chan, IrcClient client) : base(client) { channel = chan; }