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:
commit
ea83e8c477
|
@ -42,6 +42,9 @@ exports.run = async (core, server, socket, payload) => {
|
||||||
nick: socket.nick,
|
nick: socket.nick,
|
||||||
text: `@${socket.nick} ${text}`
|
text: `@${socket.nick} ${text}`
|
||||||
};
|
};
|
||||||
|
if (socket.trip) {
|
||||||
|
newPayload.trip = socket.trip;
|
||||||
|
}
|
||||||
|
|
||||||
// broadcast to channel peers
|
// broadcast to channel peers
|
||||||
server.broadcast( newPayload, { channel: socket.channel});
|
server.broadcast( newPayload, { channel: socket.channel});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user