0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd:Ⓜ️ Force json::STRING on event.content.body so purely numerical messages are quoted.

This commit is contained in:
Jason Volk 2018-02-12 19:52:10 -08:00
parent b06412da76
commit 032156a18e

View file

@ -118,8 +118,8 @@ ircd::m::message(const room &room,
{
return message(room, sender,
{
{ "body", body },
{ "msgtype", msgtype }
{ "body", { body, json::STRING } },
{ "msgtype", { msgtype, json::STRING } },
});
}