Gave emote its own event

This commit is contained in:
marzavec
2020-09-28 00:52:49 -05:00
parent 96eacd92b1
commit 6a1a9df096
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -42,13 +42,13 @@ export async function run({ server, socket, payload }) {
text = ` ${text}`;
}
// @todo Change `cmd` from `info` to it's own `emote` event
const newPayload = {
cmd: 'info',
type: 'emote',
cmd: 'emote',
nick: socket.nick,
userid: socket.userid,
text: `@${socket.nick}${text}`,
};
if (socket.trip) {
newPayload.trip = socket.trip;
}
@@ -29,6 +29,5 @@ exports.Errors = {
Invite: {
RATELIMIT: InviteErrors + 1,
INVALID_LENGTH: InviteErrors + 2,
},
};