mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-07-22 05:23:31 +01:00
7ccdbb258f
This reverts commit f00d13da66.
18 lines
511 B
Plaintext
18 lines
511 B
Plaintext
/**
|
|
* Message-related procs
|
|
*
|
|
* Message format (/list):
|
|
* - type - Message type, must be one of defines in `code/__DEFINES/chat.dm`
|
|
* - text - Plain message text
|
|
* - html - HTML message text
|
|
* - Optional metadata, can be any key/value pair.
|
|
*
|
|
* Copyright (c) 2020 Aleksej Komarov
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/proc/message_to_html(message)
|
|
// Here it is possible to add a switch statement
|
|
// to custom-handle various message types.
|
|
return message["html"] || message["text"]
|