|
|
@ -112,7 +112,7 @@ ashita.register_event('incoming_text', function(mode, message, modifiedmode, mod |
|
|
|
|
|
|
|
|
|
|
|
-- Create the file name and ensure the path to it exists.. |
|
|
|
-- Create the file name and ensure the path to it exists.. |
|
|
|
local d = os.date('*t'); |
|
|
|
local d = os.date('*t'); |
|
|
|
local n = string.format('%s_%.2u.%.2u.%.4u.log', name, d.month, d.day, d.year); |
|
|
|
local n = string.format('%s_%.4u.%.2u.%.2u.log', name, d.year, d.month, d.day); |
|
|
|
local p = string.format('%s/%s/', AshitaCore:GetAshitaInstallPath(), 'chatlogs'); |
|
|
|
local p = string.format('%s/%s/', AshitaCore:GetAshitaInstallPath(), 'chatlogs'); |
|
|
|
if (not ashita.file.dir_exists(p)) then |
|
|
|
if (not ashita.file.dir_exists(p)) then |
|
|
|
ashita.file.create_dir(p); |
|
|
|
ashita.file.create_dir(p); |
|
|
|