Merge remote-tracking branch 'refs/remotes/Kwoth/1.4' into 1.4

This commit is contained in:
samvaio 2017-06-15 00:05:35 +05:30
commit f100da8918
3 changed files with 5 additions and 4 deletions

View File

@ -515,7 +515,10 @@ namespace NadekoBot.Modules.Searches
var sense = data.Results.FirstOrDefault(x => x.Senses?[0].Definition != null)?.Senses[0];
if (sense?.Definition == null)
{
await ReplyErrorLocalized("define_unknown").ConfigureAwait(false);
return;
}
var definition = sense.Definition.ToString();
if (!(sense.Definition is string))

View File

@ -28,10 +28,6 @@ namespace NadekoBot.Services.Searches
_db = db;
_client = client;
_strings = strings;
}
public StreamNotificationService()
{
_streamCheckTimer = new Timer(async (state) =>
{
var oldCachedStatuses = new ConcurrentDictionary<string, StreamStatus>(_cachedStatuses);

View File

@ -446,6 +446,7 @@
"music_skipped_to": "Skipped to `{0}:{1}`",
"music_songs_shuffled": "Songs shuffled",
"music_song_moved": "Song moved",
"music_song_not_found": "No song found.",
"music_time_format": "{0}h {1}m {2}s",
"music_to_position": "To position",
"music_unlimited": "unlimited",
@ -522,6 +523,7 @@
"searches_cost": "Cost",
"searches_date": "Date",
"searches_define": "Define:",
"searches_define_unknown": "Can't find the definition for that term.",
"searches_dropped": "Dropped",
"searches_episodes": "Episodes",
"searches_error_occured": "Error occurred.",