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:
luca 2010-01-08 15:05:38 +00:00
parent 3e16e00344
commit 95af5393f3

View File

@ -1165,14 +1165,18 @@ int Tdninst::test_cmdline(const TString& cmdline, bool key_must_exist, TString&
} }
const TString4 strmod = cmdline.left(2); const TString4 strmod = cmdline.left(2);
const word codmod = don.module_name2code(strmod); const int space_pos = cmdline.find(' ');
if (codmod == BAAUT) if (space_pos < 0 || space_pos == 3)
return 0; {
const word codmod = don.module_name2code(strmod);
if (codmod == BAAUT)
return 0;
if (!don.active(codmod)) if (!don.active(codmod))
{ {
msg << TR("Modulo non attivo sulla chiave: ") << strmod; msg << TR("Modulo non attivo sulla chiave: ") << strmod;
return 2; return 2;
}
} }
const TDate oggi(TODAY); const TDate oggi(TODAY);