Skip to content

Commit

Permalink
feat: add /me support to new broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Dec 11, 2023
1 parent 1b9172a commit b64ca3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/chat/js/messages/ChatBroadcastMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ export default class ChatBroadcastMessage extends ChatEventMessage {
user.innerText = this.user.displayName;

const ctrl = document.createElement('span');
ctrl.classList.toggle('ctrl');
ctrl.innerText = ': ';

if (this.slashme) {
ctrl.innerText = '';
return [user, ctrl, ' '];
}

return [user, ctrl];
}

Expand Down

0 comments on commit b64ca3d

Please sign in to comment.