public override ParseResult TryParse(string input)
{
string pattern = @"/away(\s+(?<message>.+))?";
Regex regex = new Regex(pattern, RegexOptions.IgnoreCase);
Match match = regex.Match(input);
if (match.Success)
{
if (match.Groups["message"].Success)
{
this.TrailingParameter = match.Groups["message"].Value;
}
}
return new ParseResult(true, string.Empty);
}