forked from CringeStudios/gamja
Support @+draft/channel-context
See: https://github.com/ircv3/ircv3-specifications/pull/498
This commit is contained in:
parent
f6ba40046f
commit
b9693d53ec
@ -745,7 +745,12 @@ export default class App extends Component {
|
||||
if (client.cm(msg.prefix.name) === client.cm(client.serverPrefix.name)) {
|
||||
target = SERVER_BUFFER;
|
||||
} else {
|
||||
target = msg.prefix.name;
|
||||
let context = msg.tags['+draft/channel-context'];
|
||||
if (context && client.isChannel(context) && State.getBuffer(this.state, { server: serverID, name: context })) {
|
||||
target = context;
|
||||
} else {
|
||||
target = msg.prefix.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (msg.command === "NOTICE" && !State.getBuffer(this.state, { server: serverID, name: target })) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user