Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : piccola modifica necessaria al controllo delle personalizzazioni sul dninst (seguirà completamento by guy per le date) git-svn-id: svn://10.65.10.50/trunk@19896 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3e16e00344
commit
95af5393f3
@ -1165,14 +1165,18 @@ int Tdninst::test_cmdline(const TString& cmdline, bool key_must_exist, TString&
|
||||
}
|
||||
|
||||
const TString4 strmod = cmdline.left(2);
|
||||
const word codmod = don.module_name2code(strmod);
|
||||
if (codmod == BAAUT)
|
||||
return 0;
|
||||
const int space_pos = cmdline.find(' ');
|
||||
if (space_pos < 0 || space_pos == 3)
|
||||
{
|
||||
const word codmod = don.module_name2code(strmod);
|
||||
if (codmod == BAAUT)
|
||||
return 0;
|
||||
|
||||
if (!don.active(codmod))
|
||||
{
|
||||
msg << TR("Modulo non attivo sulla chiave: ") << strmod;
|
||||
return 2;
|
||||
if (!don.active(codmod))
|
||||
{
|
||||
msg << TR("Modulo non attivo sulla chiave: ") << strmod;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
const TDate oggi(TODAY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user