Skip to content

Commit

Permalink
fix: /host not accepting spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Apr 20, 2024
1 parent b03995c commit 691c97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -2232,8 +2232,8 @@ class Chat {
}

cmdHOST(parts) {
const displayName = parts[1];
let url = parts[0];
const displayName = parts.slice(1).join(' ') || undefined;

if (!this.user.hasAnyFeatures(UserFeatures.ADMIN, UserFeatures.MODERATOR)) {
MessageBuilder.error(errorstrings.get('nopermission')).into(this);
Expand Down

0 comments on commit 691c97e

Please sign in to comment.