lib/irc: extend parseURL to support flags and skip auth + options
This commit is contained in:
parent
a313363ed7
commit
49a59077b7
2 changed files with 48 additions and 12 deletions
|
@ -909,11 +909,11 @@ export default class App extends Component {
|
|||
|
||||
event.preventDefault();
|
||||
|
||||
let buf = State.getBuffer(this.state, { server: serverID, name: url.channel || SERVER_BUFFER });
|
||||
let buf = State.getBuffer(this.state, { server: serverID, name: url.entity || SERVER_BUFFER });
|
||||
if (buf) {
|
||||
this.switchBuffer(buf.id);
|
||||
} else {
|
||||
this.open(url.channel, serverID);
|
||||
this.open(url.entity, serverID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue