private void OnUserPart(List <string> msgSplit) { (string, string)userAndServer = ExtractUserAndServer(msgSplit[0]); string channel = msgSplit[2].TrimStart(':'); OnUserParted?.Invoke(this, new IrcPartEventArgs(userAndServer.Item1, userAndServer.Item2, channel)); }
internal void PartUser(User u, string msg, bool loudly) { Users.Remove(u); if (OnUserParted != null) { OnUserParted.Invoke(this, u, msg, loudly); } }