From a9e34bac15de27ac851cc2db6508f4c9d82d735b Mon Sep 17 00:00:00 2001 From: Zontreck Date: Sun, 21 Jun 2020 00:34:31 -0700 Subject: [PATCH] Fix extension check --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index df57add..8a83093 100644 --- a/Program.cs +++ b/Program.cs @@ -286,7 +286,7 @@ namespace Bot FileInfo[] files = new DirectoryInfo(Directory.GetCurrentDirectory()).GetFiles(); foreach(FileInfo fi in files) { - if(fi.Extension.ToLower() == "dll") + if(fi.Extension.ToLower() == ".dll") { PluginActivator PA = new PluginActivator(); Assembly asm = PA.LoadLibrary(fi.FullName);