mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixing conflict and allowing export chatlog
This commit is contained in:
@@ -382,9 +382,6 @@ var/to_chat_src
|
|||||||
/client/proc/vchat_export_log()
|
/client/proc/vchat_export_log()
|
||||||
set name = "Export chatlog"
|
set name = "Export chatlog"
|
||||||
set category = "OOC"
|
set category = "OOC"
|
||||||
|
|
||||||
to_chat(usr, "<span class='warning'>This verb is temporarily disabled due to performance issues.</span>") //CHOMPEdit
|
|
||||||
return //CHOMPEdit
|
|
||||||
|
|
||||||
if(chatOutput.broken)
|
if(chatOutput.broken)
|
||||||
to_chat(src, "<span class='warning'>Error: VChat isn't processing your messages!</span>")
|
to_chat(src, "<span class='warning'>Error: VChat isn't processing your messages!</span>")
|
||||||
|
|||||||
@@ -207,23 +207,8 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE
|
|||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
//Write it out
|
//Write it out
|
||||||
<<<<<<< HEAD
|
|
||||||
if(fexists(path))
|
|
||||||
fdel(path) //Byond only supports APPENDING to files, not replacing.
|
|
||||||
text2file(json_to_file, path)
|
|
||||||
||||||| parent of b4fb235ba3... Merge pull request #9246 from ShadowLarkens/vchat_export_optimization
|
|
||||||
#ifdef RUST_G
|
|
||||||
call(RUST_G, "file_write")(json_to_file, path)
|
|
||||||
#else
|
|
||||||
// Fall back to using old format if we are not using rust-g
|
|
||||||
if(fexists(path))
|
|
||||||
fdel(path) //Byond only supports APPENDING to files, not replacing.
|
|
||||||
text2file(json_to_file, path)
|
|
||||||
#endif
|
|
||||||
=======
|
|
||||||
rustg_file_write(json_to_file, path)
|
rustg_file_write(json_to_file, path)
|
||||||
|
|
||||||
>>>>>>> b4fb235ba3... Merge pull request #9246 from ShadowLarkens/vchat_export_optimization
|
|
||||||
if(!fexists(path))
|
if(!fexists(path))
|
||||||
log_debug("Saving: [path] failed file write")
|
log_debug("Saving: [path] failed file write")
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user