Parcourir la source

Fixed faulty callback call

Taddeus Kroes il y a 13 ans
Parent
commit
e169d77ab7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      message.py

+ 1 - 1
message.py

@@ -38,6 +38,6 @@ OPCODE_CLASS_MAP = {
 
 def create_message(opcode, payload):
     if opcode in OPCODE_CLASS_MAP:
-        return OPCODE_CLASS_MAP(payload)
+        return OPCODE_CLASS_MAP[opcode](payload)
 
     return Message(opcode, payload)