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

Merge pull request #79 from 0x17de/feature-emote-trip

add trip to emotes (/me)
This commit is contained in:
marzavec 2019-10-14 09:26:42 -05:00 committed by GitHub
commit ea83e8c477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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});