Exemple #1
0
 void AddNotification(string text)
 {
     var message = new ChatMessage(DateTime.Now, ChatMessageType.Notification, null, text);
     Game.RunAfterTick(() =>
     {
         History.Add(message);
         Log.Write("irc", text);
     });
 }
Exemple #2
0
 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);
     });
 }