comparison mcabber/src/histolog.c @ 366:c30c0d0eb129

Bigger warning when logging is disabled Hopefully the user will see it...
author Mikael Berthe <mikael@lilotux.net>
date Sun, 24 Jul 2005 15:26:39 +0100
parents 33b8e801ffa6
children bd5638c21834
comparison
equal deleted inserted replaced
365:ddb6593bedc9 366:c30c0d0eb129
249 } 249 }
250 // Check directory permissions (should not be readable by group/others) 250 // Check directory permissions (should not be readable by group/others)
251 if (checkset_perm(RootDir, TRUE) == -1) { 251 if (checkset_perm(RootDir, TRUE) == -1) {
252 // The directory does not actually exists 252 // The directory does not actually exists
253 g_free(RootDir); 253 g_free(RootDir);
254 scr_LogPrint("ERROR: Can't access history log directory"); 254 scr_LogPrint("ERROR: Cannot access history log directory, "
255 "logging DISABLED");
255 UseFileLogging = FileLoadLogs = FALSE; 256 UseFileLogging = FileLoadLogs = FALSE;
256 } 257 }
257 } else { // Disable history logging 258 } else { // Disable history logging
258 if (RootDir) 259 if (RootDir)
259 g_free(RootDir); 260 g_free(RootDir);