1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

add trip to emotes (/me)

This commit is contained in:
Manuel Herrmann 2019-10-12 01:11:13 +02:00
parent aeec2be24f
commit 769b856d1c
No known key found for this signature in database
GPG Key ID: 9C745C24E53C2F83

View File

@ -42,6 +42,9 @@ exports.run = async (core, server, socket, payload) => {
nick: socket.nick,
text: `@${socket.nick} ${text}`
};
if (socket.trip) {
newPayload.trip = socket.trip;
}
// broadcast to channel peers
server.broadcast( newPayload, { channel: socket.channel});