mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-19 09:46:59 +01:00
28e11dee54
Co-authored-by: silicons <2003111+silicons@users.noreply.github.com> Co-authored-by: Zandario <zandarioh@gmail.com> Co-authored-by: VM_USER <VM_USER> Co-authored-by: AlphaM01 <33434925+AlphaM01@users.noreply.github.com> Co-authored-by: LordPapalus <54518057+LordPapalus@users.noreply.github.com>
25 lines
540 B
Plaintext
25 lines
540 B
Plaintext
/datum/preferences/proc/auto_flush_errors()
|
|
if(!client)
|
|
return
|
|
flush_errors(client)
|
|
|
|
/datum/preferences/proc/flush_errors(client/C)
|
|
if(!C)
|
|
return
|
|
if(!LAZYLEN(io_error_queue))
|
|
return
|
|
to_chat(C, io_error_queue.Join("<br>"))
|
|
io_error_queue = null
|
|
|
|
/datum/preferences/proc/queue_errors(list/errors, head_message)
|
|
if(!LAZYLEN(errors))
|
|
return
|
|
LAZYINITLIST(io_error_queue)
|
|
var/list/lined = list()
|
|
var/i = 0
|
|
if(head_message)
|
|
lined += head_message
|
|
for(var/error in errors)
|
|
lined += "[++i]: [error]"
|
|
io_error_queue += errors
|