From 663e8225e39332c93f87030d6b590d7dde0bb163 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Wed, 3 Apr 2024 14:32:04 -0400 Subject: [PATCH] breaking news im fucking retarded! --- EmperorPalpatine/Program.cs | 2 +- EmperorPalpatine/VM.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EmperorPalpatine/Program.cs b/EmperorPalpatine/Program.cs index e2fd53d..0dbbfff 100644 --- a/EmperorPalpatine/Program.cs +++ b/EmperorPalpatine/Program.cs @@ -47,7 +47,7 @@ class Program // Initialize IPinfo IPinfo = new IPinfoClient.Builder().AccessToken(Config.IPInfoToken).Build(); // Initialize filters - Filters = Config.Filters.Select(f => new Filter(f)).ToArray(); + Filters = (Config.Filters.Length > 0) ? Config.Filters.Select(f => new Filter(f)).ToArray() : []; // Initialize the database Database = new Database(Config.Database); await Database.InitAsync(); diff --git a/EmperorPalpatine/VM.cs b/EmperorPalpatine/VM.cs index eabc6be..a716153 100644 --- a/EmperorPalpatine/VM.cs +++ b/EmperorPalpatine/VM.cs @@ -116,7 +116,7 @@ public class VM string ip; try { - ip = await cvm.GetIP(username); + ip = await cvm.GetIP(e.Username); } catch (TimeoutException ex) { @@ -140,7 +140,7 @@ public class VM string ip; try { - ip = await cvm.GetIP(username); + ip = await cvm.GetIP(user.Username); await database.LogIPAsync(Config.Name, user.Username, IPAddress.Parse(ip)); } catch (TimeoutException ex)