private void addMessage(prms prms) { ChatMessage cm = new ChatMessage() { Name = prms.name, Date = DateTime.Now, //Form = 1, Id = this.Label, Source = this, Text = prms.text, ToMe = false }; //5:::{"name":"message","args":["{\"method\":\"chatMsg\",\"params\":{\"channel\":\"yuuhi\",\"name\":\"bebo7\",\"nameColor\":\"39BF42\",\"text\":\"@Kravchenko dawno nie gral;P\",\"time\":1441910697,\"role\":\"anon\",\"isFollower\":true,\"isSubscriber\":true,\"isOwner\":false,\"isStaff\":false,\"isCommunity\":false,\"media\":false,\"image\":\"/static/img/chat/yuuhi/badge.png\"}}"]} if (Properties.Settings.Default.hitbox_AllowUserColors && !string.IsNullOrEmpty(prms.color)) { cm.Color = "#" + prms.color; } if (!string.IsNullOrEmpty(prms.badge)) { cm.AddBadge("http://edge.sf.hitbox.tv" + prms.badge); } this.newMessagesArrived(new ChatMessage[] { cm }); }