|
|
|
@ -221,11 +221,17 @@ void fIOthread(void * iodata)
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Plugin * plug = plug_mgr->getPluginByName(plugname);
|
|
|
|
|
if(!plug) con.printerr("No such plugin\n");
|
|
|
|
|
if(!plug)
|
|
|
|
|
{
|
|
|
|
|
con.printerr("No such plugin\n");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
plug->load();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( first == "reload" )
|
|
|
|
|
{
|
|
|
|
|
if(parts.size())
|
|
|
|
@ -242,11 +248,17 @@ void fIOthread(void * iodata)
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Plugin * plug = plug_mgr->getPluginByName(plugname);
|
|
|
|
|
if(!plug) con.printerr("No such plugin\n");
|
|
|
|
|
if(!plug)
|
|
|
|
|
{
|
|
|
|
|
con.printerr("No such plugin\n");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
plug->reload();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( first == "unload" )
|
|
|
|
|
{
|
|
|
|
|
if(parts.size())
|
|
|
|
@ -263,11 +275,17 @@ void fIOthread(void * iodata)
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Plugin * plug = plug_mgr->getPluginByName(plugname);
|
|
|
|
|
if(!plug) con.printerr("No such plugin\n");
|
|
|
|
|
if(!plug)
|
|
|
|
|
{
|
|
|
|
|
con.printerr("No such plugin\n");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
plug->unload();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(first == "ls" || first == "dir")
|
|
|
|
|
{
|
|
|
|
|
if(parts.size())
|
|
|
|
|