public void OnPart(Line line) { line.GetChannel().Users.Remove(line.Prefix.Nickname); if (line.PrefixIsSelf()) Channels.Remove(line.Target); }
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)); }
public void OnTopicSet(Line line) { var topic = line.GetChannel().Topic; topic.Message = line.Message; topic.Author = line.Prefix; topic.Time = DateTime.UtcNow; }
public void OnPart(Line line) { line.GetChannel().Users.Remove(line.Prefix.Nickname); if (line.PrefixIsSelf()) { Channels.Remove(line.Target); } }
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)); }