0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02: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, return message(room, sender,
{ {
{ "body", body }, { "body", { body, json::STRING } },
{ "msgtype", msgtype } { "msgtype", { msgtype, json::STRING } },
}); });
} }