breaking news im fucking retarded!

This commit is contained in:
Elijah R 2024-04-03 14:32:04 -04:00
parent 38fab43060
commit 663e8225e3
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ class Program
// Initialize IPinfo // Initialize IPinfo
IPinfo = new IPinfoClient.Builder().AccessToken(Config.IPInfoToken).Build(); IPinfo = new IPinfoClient.Builder().AccessToken(Config.IPInfoToken).Build();
// Initialize filters // 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 // Initialize the database
Database = new Database(Config.Database); Database = new Database(Config.Database);
await Database.InitAsync(); await Database.InitAsync();

View file

@ -116,7 +116,7 @@ public class VM
string ip; string ip;
try try
{ {
ip = await cvm.GetIP(username); ip = await cvm.GetIP(e.Username);
} }
catch (TimeoutException ex) catch (TimeoutException ex)
{ {
@ -140,7 +140,7 @@ public class VM
string ip; string ip;
try try
{ {
ip = await cvm.GetIP(username); ip = await cvm.GetIP(user.Username);
await database.LogIPAsync(Config.Name, user.Username, IPAddress.Parse(ip)); await database.LogIPAsync(Config.Name, user.Username, IPAddress.Parse(ip));
} }
catch (TimeoutException ex) catch (TimeoutException ex)