Example #1
0
		public void OnPart(Line line)
		{
			line.GetChannel().Users.Remove(line.Prefix.Nickname);

			if (line.PrefixIsSelf())
				Channels.Remove(line.Target);
		}
Example #2
0
		public void OnJoin(Line line)
		{
			if (line.PrefixIsSelf())
				Channels.Add(line.Target, new Channel(line.Target));

			line.GetChannel().Users.Add(line.Prefix.Nickname, new User(line.Prefix));
		}
Example #3
0
        public void OnPart(Line line)
        {
            line.GetChannel().Users.Remove(line.Prefix.Nickname);

            if (line.PrefixIsSelf())
            {
                Channels.Remove(line.Target);
            }
        }
Example #4
0
        public void OnJoin(Line line)
        {
            if (line.PrefixIsSelf())
            {
                Channels.Add(line.Target, new Channel(line.Target));
            }

            line.GetChannel().Users.Add(line.Prefix.Nickname, new User(line.Prefix));
        }