Adds vchat export chatlog verb (#7214)

This commit is contained in:
Atermonera
2020-05-24 14:23:14 -07:00
committed by VirgoBot
parent 5c130f413e
commit f0bf4efcca
4 changed files with 72 additions and 6 deletions

View File

@@ -454,18 +454,20 @@ client/verb/character_setup()
if(src.chatOutputLoadedAt > (world.time - 10 SECONDS))
alert(src, "You can only try to reload VChat every 10 seconds at most.")
return
verbs -= /client/proc/vchat_export_log
//Log, disable
log_debug("[key_name(src)] reloaded VChat.")
winset(src, null, "outputwindow.htmloutput.is-visible=false;outputwindow.oldoutput.is-visible=false;outputwindow.chatloadlabel.is-visible=true")
//The hard way
qdel_null(src.chatOutput)
chatOutput = new /datum/chatOutput(src) //veechat
chatOutput.send_resources()
spawn()
chatOutput.start()
//This is for getipintel.net.
//You're welcome to replace this proc with your own that does your own cool stuff.