Skip to content

Commit f30793b

Browse files
authored
Merge pull request #19 from gngrninja/wowcommands
Fixed realm lookups that contain a "'"
2 parents c892596 + 211b4cd commit f30793b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/Wow/WarcraftLogs.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ async void CheckForNewLogs()
336336
{
337337
if (watchGuild.MonitorLogs)
338338
{
339-
System.Console.WriteLine($"YES! Watch logs on {guild.ServerName}!");
340-
var logs = GetReportsFromGuild(guild.WowGuild, guild.WowRealm, guild.WowRegion);
339+
//System.Console.WriteLine($"YES! Watch logs on {guild.ServerName}!");
340+
var logs = GetReportsFromGuild(guild.WowGuild, guild.WowRealm.Replace("'",""), guild.WowRegion);
341341
if (logs != null)
342342
{
343343
var latestLog = logs[logs.Count - 1];
@@ -348,7 +348,7 @@ async void CheckForNewLogs()
348348
{
349349
var latestForGuild = db.LogMonitoring.Where(l => l.ServerId == guild.ServerId).FirstOrDefault();
350350
latestForGuild.LatestLog = startTime;
351-
await db.SaveChangesAsync();
351+
await db.SaveChangesAsync();
352352
}
353353
DiscordSocketClient client = NinjaBot.Client;
354354
ISocketMessageChannel channel = client.GetChannel((ulong)watchGuild.ChannelId) as ISocketMessageChannel;

0 commit comments

Comments
 (0)