forked from CringeStudios/gamja
Move msg.tags fallback to client
This commit is contained in:
parent
a172c810e9
commit
4b306305bf
@ -598,9 +598,6 @@ export default class App extends Component {
|
||||
// operators and can contain important information.
|
||||
msg.isHighlight = irc.isHighlight(msg, client.nick, client.cm) || irc.isServerBroadcast(msg);
|
||||
|
||||
if (!msg.tags) {
|
||||
msg.tags = {};
|
||||
}
|
||||
if (!msg.tags.time) {
|
||||
msg.tags.time = irc.formatDate(new Date());
|
||||
}
|
||||
|
@ -295,6 +295,9 @@ export default class Client extends EventTarget {
|
||||
if (!msg.prefix) {
|
||||
msg.prefix = this.serverPrefix;
|
||||
}
|
||||
if (!msg.tags) {
|
||||
msg.tags = {};
|
||||
}
|
||||
|
||||
let msgBatch = null;
|
||||
if (msg.tags["batch"]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user