added check if flags weren't changed to writeLog

This commit is contained in:
Václav Šmejkal 2022-12-10 16:25:46 +01:00
parent 0db83e0a51
commit f26945a841
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -116,7 +116,7 @@ void writeLog(int loggerFile, char *logMessage)
logFlags flags = getLogFlags();
//SET ENCRYPTER FLAGS
setFlags((inputFlags) { 0, 1, 0 });
if (!getFlagsChanged()) setFlags((inputFlags) { 0, 1, 0 });
if (flags.key != NULL) //ENCRYPT TEXT IF KEY WAS CHANGED
{