components/app: fix STATUSMSG NOTICE when target buffer is closed
This commit is contained in:
parent
3d03c0dbcf
commit
0f273b9699
1 changed files with 8 additions and 7 deletions
|
@ -933,6 +933,14 @@ export default class App extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
let allowedPrefixes = client.isupport.statusMsg();
|
||||
if (allowedPrefixes) {
|
||||
let parts = irc.parseTargetPrefix(target, allowedPrefixes);
|
||||
if (client.isChannel(parts.name)) {
|
||||
target = parts.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Don't open a new buffer if this is just a NOTICE or a garbage
|
||||
// CTCP message
|
||||
let openNewBuffer = true;
|
||||
|
@ -948,13 +956,6 @@ export default class App extends Component {
|
|||
target = SERVER_BUFFER;
|
||||
}
|
||||
|
||||
let allowedPrefixes = client.isupport.statusMsg();
|
||||
if (allowedPrefixes) {
|
||||
let parts = irc.parseTargetPrefix(target, allowedPrefixes);
|
||||
if (client.isChannel(parts.name)) {
|
||||
target = parts.name;
|
||||
}
|
||||
}
|
||||
return [target];
|
||||
case "JOIN":
|
||||
channel = msg.params[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue