mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Convert caps to lower case
This commit is contained in:
parent
df2b46175a
commit
06eb639ee9
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,7 @@ export default class Client extends EventTarget {
|
|||
var l = s.split(" ");
|
||||
l.forEach((s) => {
|
||||
var parts = s.split("=");
|
||||
var k = parts[0];
|
||||
var k = parts[0].toLowerCase();
|
||||
var v = "";
|
||||
if (parts.length > 1) {
|
||||
v = parts[1];
|
||||
|
@ -239,6 +239,7 @@ export default class Client extends EventTarget {
|
|||
break;
|
||||
case "DEL":
|
||||
args[0].split(" ").forEach((cap) => {
|
||||
cap = cap.toLowerCase();
|
||||
delete this.availableCaps[cap];
|
||||
delete this.enabledCaps[cap];
|
||||
});
|
||||
|
@ -247,6 +248,7 @@ export default class Client extends EventTarget {
|
|||
case "ACK":
|
||||
console.log("Server ack'ed caps:", args[0]);
|
||||
args[0].split(" ").forEach((cap) => {
|
||||
cap = cap.toLowerCase();
|
||||
this.enabledCaps[cap] = true;
|
||||
|
||||
if (cap == "sasl" && this.params.saslPlain) {
|
||||
|
|
Loading…
Reference in a new issue