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,6 +1165,9 @@ 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 int space_pos = cmdline.find(' ');
if (space_pos < 0 || space_pos == 3)
{
const word codmod = don.module_name2code(strmod); const word codmod = don.module_name2code(strmod);
if (codmod == BAAUT) if (codmod == BAAUT)
return 0; return 0;
@ -1174,6 +1177,7 @@ int Tdninst::test_cmdline(const TString& cmdline, bool key_must_exist, TString&
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);
const int solar_year = oggi.year(); const int solar_year = oggi.year();