void AddNotification(string text) { var message = new ChatMessage(DateTime.Now, ChatMessageType.Notification, null, text); Game.RunAfterTick(() => { History.Add(message); Log.Write("irc", text); }); }
void AddMessage(string nick, string text) { var message = new ChatMessage(DateTime.Now, ChatMessageType.Message, nick, text); Game.RunAfterTick(() => { History.Add(message); Log.Write("irc", text); }); }