lib/client: handle MONITOR without value in ISUPPORT

This commit is contained in:
Simon Ser 2021-10-07 21:49:13 +02:00
parent 4577f0a27f
commit 8cc61bf577

View File

@ -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) {