Handle RPL_INVITING
This commit is contained in:
parent
0fa6381c07
commit
429450e060
3 changed files with 11 additions and 1 deletions
|
@ -728,6 +728,10 @@ export default class App extends Component {
|
||||||
channel = msg.params[1];
|
channel = msg.params[1];
|
||||||
this.addMessage(serverID, channel, msg);
|
this.addMessage(serverID, channel, msg);
|
||||||
break;
|
break;
|
||||||
|
case irc.RPL_INVITING:
|
||||||
|
channel = msg.params[2];
|
||||||
|
this.addMessage(serverID, channel, msg);
|
||||||
|
break;
|
||||||
case irc.RPL_MYINFO:
|
case irc.RPL_MYINFO:
|
||||||
case irc.RPL_ISUPPORT:
|
case irc.RPL_ISUPPORT:
|
||||||
case irc.RPL_NOTOPIC:
|
case irc.RPL_NOTOPIC:
|
||||||
|
|
|
@ -88,6 +88,7 @@ class LogLine extends Component {
|
||||||
|
|
||||||
let lineClass = "";
|
let lineClass = "";
|
||||||
let content;
|
let content;
|
||||||
|
let invitee;
|
||||||
switch (msg.command) {
|
switch (msg.command) {
|
||||||
case "NOTICE":
|
case "NOTICE":
|
||||||
case "PRIVMSG":
|
case "PRIVMSG":
|
||||||
|
@ -164,7 +165,7 @@ class LogLine extends Component {
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "INVITE":
|
case "INVITE":
|
||||||
let invitee = msg.params[0];
|
invitee = msg.params[0];
|
||||||
let channel = msg.params[1];
|
let channel = msg.params[1];
|
||||||
// TODO: instead of checking buffer type, check if invitee is our nick
|
// TODO: instead of checking buffer type, check if invitee is our nick
|
||||||
if (buf.type === BufferType.SERVER) {
|
if (buf.type === BufferType.SERVER) {
|
||||||
|
@ -178,6 +179,10 @@ class LogLine extends Component {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case irc.RPL_INVITING:
|
||||||
|
invitee = msg.params[1];
|
||||||
|
content = html`${createNick(invitee)} has been invited to the channel`;
|
||||||
|
break;
|
||||||
case irc.RPL_MOTD:
|
case irc.RPL_MOTD:
|
||||||
lineClass = "motd";
|
lineClass = "motd";
|
||||||
content = linkify(stripANSI(msg.params[1]), onChannelClick);
|
content = linkify(stripANSI(msg.params[1]), onChannelClick);
|
||||||
|
|
|
@ -16,6 +16,7 @@ export const RPL_CREATIONTIME = "329";
|
||||||
export const RPL_NOTOPIC = "331";
|
export const RPL_NOTOPIC = "331";
|
||||||
export const RPL_TOPIC = "332";
|
export const RPL_TOPIC = "332";
|
||||||
export const RPL_TOPICWHOTIME = "333";
|
export const RPL_TOPICWHOTIME = "333";
|
||||||
|
export const RPL_INVITING = "341";
|
||||||
export const RPL_INVITELIST = "346";
|
export const RPL_INVITELIST = "346";
|
||||||
export const RPL_ENDOFINVITELIST = "347";
|
export const RPL_ENDOFINVITELIST = "347";
|
||||||
export const RPL_EXCEPTLIST = "348";
|
export const RPL_EXCEPTLIST = "348";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue