private ParseRawString ( string raw ) : void | ||
raw | string | The raw message to parse, as sent by the server. |
return | void |
private void ParseRawString(string raw)
{
Match match = new Regex(Constants.ChatMessageFilterRegex, RegexOptions.IgnoreCase).Match(raw);
if (match.Success)
{
User = match.Groups[1].ToString();
Message = match.Groups[2].ToString();
}
else
{
User = string.Empty;
Message = raw;
}
}