mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 23:43:42 +01:00
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")) {
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user