pfft, nitpick

This commit is contained in:
appelemac 2016-06-18 13:40:22 +02:00
parent 4ed29ea38e
commit c78f98bf19

View File

@ -21,7 +21,7 @@ namespace NadekoBot.Modules.CustomReactions
{
commandFuncs = new Dictionary<Regex, Func<CommandEventArgs, Match, string>>
{
{new Regex(@"%rng:?(\d{0,9})-?(\d{0,9})%"), (e,m) => {
{new Regex(@"%rng(?:%|:(\d{0,9})-(\d{0,9})%)"), (e,m) => {
int start, end;
if (int.TryParse(m.Groups[1].Value, out start) && int.TryParse(m.Groups[2].Value, out end)) {
return rng.Next(start, end).ToString();