Fixed flag creation, added flags inctic_flag incfile_flag

This commit is contained in:
zx
2024-07-03 22:42:20 +03:00
parent 5ef2b09861
commit 46312ebc1b
10 changed files with 93 additions and 32 deletions
+3 -3
View File
@@ -656,7 +656,7 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
{
log("bad phone, excluding modem");
call_mayuse &= ~CALL_MODEM;
if( !(call_mustuse & CALL_MODEM) )
if( !(call_mayuse) )
{
errmsg = "don't know phone number";
gotoexit(BFERR_PHONE_UNKNOWN);
@@ -690,7 +690,7 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
{
call_mayuse &= ~CALL_MODEM;
log("bad worktime, excluding modem");
if( !(call_mustuse & CALL_MODEM) )
if( !(call_mayuse) )
{
errmsg = "not works now, try later";
gotoexit(BFERR_NOTWORKING);
@@ -783,7 +783,7 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
DEB((D_EVENT, "bad host or proto -> exclude IP, mayuse=%d", call_mayuse));
// If we had ONLY tcpip command - go out with error
if( !(call_mustuse & CALL_TCPIP_ANY) )
if( !(call_mayuse) )
{
errmsg = "Aborting, don't know host name";
gotoexit(BFERR_PHONE_UNKNOWN);