mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Ensure msg.prefix is always populated
This commit is contained in:
parent
e9d90d4927
commit
24fe62f1de
@ -145,6 +145,12 @@ export default class Client extends EventTarget {
|
|||||||
var msg = irc.parseMessage(event.data);
|
var msg = irc.parseMessage(event.data);
|
||||||
console.debug("Received:", msg);
|
console.debug("Received:", msg);
|
||||||
|
|
||||||
|
// If the prefix is missing, assume it's coming from the server on the
|
||||||
|
// other end of the connection
|
||||||
|
if (!msg.prefix) {
|
||||||
|
msg.prefix = this.serverPrefix;
|
||||||
|
}
|
||||||
|
|
||||||
var msgBatch = null;
|
var msgBatch = null;
|
||||||
if (msg.tags["batch"]) {
|
if (msg.tags["batch"]) {
|
||||||
msgBatch = this.batches.get(msg.tags["batch"]);
|
msgBatch = this.batches.get(msg.tags["batch"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user