Fix message decoding: not all parameters was decoded
This commit is contained in:
parent
c13173e62c
commit
04bde60482
@ -124,7 +124,7 @@ class MessageConsumer:
|
|||||||
self.srv._on_connect()
|
self.srv._on_connect()
|
||||||
|
|
||||||
elif msg.cmd == "PING":
|
elif msg.cmd == "PING":
|
||||||
self.srv.write("%s :%s" % ("PONG", msg.decode(msg.params[0])))
|
self.srv.write("%s :%s" % ("PONG", msg.params[0]))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for h in hm.get_hooks("in", msg.cmd, msg.qual):
|
for h in hm.get_hooks("in", msg.cmd, msg.qual):
|
||||||
|
@ -91,7 +91,7 @@ class Message:
|
|||||||
self.topic = self.decode(self.params[1]).split(" ")
|
self.topic = self.decode(self.params[1]).split(" ")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for i in range(0, len(self.params)-1):
|
for i in range(0, len(self.params)):
|
||||||
self.params[i] = self.decode(self.params[i])
|
self.params[i] = self.decode(self.params[i])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user