lib/client: handle MONITOR without value in ISUPPORT
This commit is contained in:
parent
4577f0a27f
commit
8cc61bf577
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue