Add RPL_WELCOME to server buffer

This commit is contained in:
Simon Ser 2021-11-02 15:27:24 +01:00
parent 483f0c65b1
commit 85e73d0ee8
2 changed files with 4 additions and 1 deletions

View File

@ -693,7 +693,6 @@ export default class App extends Component {
case irc.RPL_INVITING:
channel = msg.params[2];
return [channel];
case irc.RPL_WELCOME:
case irc.RPL_YOURHOST:
case irc.RPL_MYINFO:
case irc.RPL_ISUPPORT:

View File

@ -186,6 +186,10 @@ class LogLine extends Component {
`;
}
break;
case irc.RPL_WELCOME:
let nick = msg.params[0];
content = html`Connected to server, your nickname is ${nick}`;
break;
case irc.RPL_INVITING:
invitee = msg.params[1];
content = html`${createNick(invitee)} has been invited to the channel`;