Procházet zdrojové kódy

[bugfix] restored capacity informations

B Thibault před 8 roky
rodič
revize
ac232e2b26
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      srv/src/context.js

+ 1 - 1
srv/src/context.js

@@ -242,7 +242,7 @@ ChatContext.prototype.toStatic = function(t) {
         }
         ,"emojis": this.emojis.version > t ? this.emojis.data : undefined
     };
-    if (t) {
+    if (this.staticV > t) {
         res["capacities"] = Object.keys(this.capacities);
     }
     if (this.commands.version > t) {