Fix extension check
This commit is contained in:
parent
1476377f6b
commit
a9e34bac15
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue