fixed ~safebooru image link

This commit is contained in:
Kwoth 2016-12-01 23:19:19 +01:00
parent 5583780fcb
commit 2c2485c8bd
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ namespace NadekoBot.Modules.CustomReactions
{ {
var txtStream = await customReactions.GroupBy(cr => cr.Trigger) var txtStream = await customReactions.GroupBy(cr => cr.Trigger)
.OrderBy(cr => cr.Key) .OrderBy(cr => cr.Key)
.Select(cr => new { Trigger = cr.Key, Responses = cr.Select(y=>y.Response).ToList() }) .Select(cr => new { Trigger = cr.Key, Responses = cr.Select(y => y.Response).ToList() })
.ToJson() .ToJson()
.ToStream() .ToStream()
.ConfigureAwait(false); .ConfigureAwait(false);

View File

@ -535,7 +535,7 @@ namespace NadekoBot.Modules.Searches
if (matches.Count == 0) if (matches.Count == 0)
return null; return null;
var match = matches[rng.Next(0, matches.Count)]; var match = matches[rng.Next(0, matches.Count)];
return matches[rng.Next(0, matches.Count)].Groups["url"].Value; return "http:" + matches[rng.Next(0, matches.Count)].Groups["url"].Value;
} }
} }