Skip to content

Commit

Permalink
Revert Move welcome to chat message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchdev committed Nov 21, 2024
1 parent 2bff2f0 commit dc5def3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class Chat {
this.subonlyicon = null;
this.loginscrn = null;
this.loadingscrn = null;
this.showwelcome = true;
this.showmotd = true;
this.subonly = false;
this.authenticated = false;
Expand Down Expand Up @@ -551,6 +550,7 @@ class Chat {
this.mainwindow.update(true);

this.setDefaultPlaceholderText();
MessageBuilder.status(this.config.welcomeMessage).into(this);
return Promise.resolve(this);
}

Expand Down Expand Up @@ -1092,19 +1092,13 @@ class Chat {
}

onNAMES(data) {
if (this.showwelcome) {
MessageBuilder.status(this.config.welcomeMessage).into(this);
this.showwelcome = false;
}

MessageBuilder.status(
`Connected as ${
this.authenticated ? this.user.displayName : 'Guest'
}. Serving ${data.connectioncount || 0} connections and ${
data.users.length
} users.`,
).into(this);

if (this.showmotd) {
this.cmdHINT([Math.floor(Math.random() * hintstrings.size)]);
this.showmotd = false;
Expand Down

0 comments on commit dc5def3

Please sign in to comment.