public ChannelMessage CreateMessage(jab.Models.Message m) { var content = m.Content; if (!m.HtmlEncoded) { content = ParseContent(content); } var message = new ChannelMessage(m.Id, m.When, m.User.Name, content); message.DetectHighlights(Server.HighlightRegex); return(message); }
public ChannelMessage CreateMessage(jab.Models.Message m) { var content = m.Content; if (!m.HtmlEncoded) content = ParseContent(content); var message = new ChannelMessage(m.Id, m.When, m.User.Name, content); message.DetectHighlights(Server.HighlightRegex); return message; }