fixes date change failing log ftp

This commit is contained in:
Jordie0608
2016-01-27 21:48:41 +11:00
parent ed7bf8feda
commit 579ff0428e
+6 -8
View File
@@ -85,11 +85,10 @@
set name = "Show Server Log"
set desc = "Shows today's server log."
var/path = "data/logs/[time2text(world.realtime,"YYYY/MM-Month/DD-Day")].log"
if( fexists(path) )
src << ftp( file(path) )
if(fexists("[diary]"))
src << ftp(file("[diary]"))
else
src << "<font color='red'>Error: view_txt_log(): File not found/Invalid path([path]).</font>"
src << "<font color='red'>Server log not found, try using .getserverlog.</font>"
return
feedback_add_details("admin_verb","VTL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
@@ -100,11 +99,10 @@
set name = "Show Server Attack Log"
set desc = "Shows today's server attack log."
var/path = "data/logs/[time2text(world.realtime,"YYYY/MM-Month/DD-Day")] Attack.log"
if( fexists(path) )
src << ftp( file(path) )
if(fexists("[diaryofmeanpeople]"))
src << ftp(file("[diaryofmeanpeople]"))
else
src << "<font color='red'>Error: view_atk_log(): File not found/Invalid path([path]).</font>"
src << "<font color='red'>Server attack log not found, try using .getserverlog.</font>"
return
feedback_add_details("admin_verb","SSAL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return