Explorar o código

add type to status reporting

David %!s(int64=10) %!d(string=hai) anos
pai
achega
cc0681690d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pmanager/pmanager.py

+ 1 - 1
pmanager/pmanager.py

@@ -80,7 +80,7 @@ class PManager:
             if j["command"] == "netcat":
                 sendmsg(j["key"])
             if j["command"] == "status": #and j["key"] == self.name:
-                self.send({"type": "snowmix", "type": "statusreport", "name": self.name, "data":self.p_list})
+                self.send({"type": "snowmix", "subtype": "statusreport", "name": self.name, "data":self.p_list})
 
     def send(self, data):
         try: