Add support for incoming INVITE messages
This commit is contained in:
parent
55882776b0
commit
63a71e5f5d
4 changed files with 75 additions and 5 deletions
6
state.js
6
state.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue