breaking news im fucking retarded!
This commit is contained in:
parent
38fab43060
commit
663e8225e3
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue