Add support for incoming INVITE messages

This commit is contained in:
Simon Ser 2021-06-03 11:04:32 +02:00
parent 55882776b0
commit 63a71e5f5d
4 changed files with 75 additions and 5 deletions

View file

@ -37,12 +37,16 @@ export function getNickURL(nick) {
return "irc:///" + encodeURIComponent(nick) + ",isuser";
}
export function getChannelURL(channel) {
return "irc:///" + encodeURIComponent(channel);
}
export function getBufferURL(buf) {
switch (buf.type) {
case BufferType.SERVER:
return "irc:///";
case BufferType.CHANNEL:
return "irc:///" + encodeURIComponent(buf.name);
return getChannelURL(buf.name);
case BufferType.NICK:
return getNickURL(buf.name);
}