forked from CringeStudios/gamja
lib/client: handle MONITOR without value in ISUPPORT
This commit is contained in:
parent
4577f0a27f
commit
8cc61bf577
@ -790,7 +790,11 @@ export default class Client extends EventTarget {
|
|||||||
if (!this.isupport.has("MONITOR")) {
|
if (!this.isupport.has("MONITOR")) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return parseInt(this.isupport.get("MONITOR"), 10);
|
let v = this.isupport.get("MONITOR");
|
||||||
|
if (v === "") {
|
||||||
|
return Infinity;
|
||||||
|
}
|
||||||
|
return parseInt(v, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
monitor(target) {
|
monitor(target) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user