test: Add msgtype to msg_generic slots
This commit is contained in:
1 parent
b3bb4031ab
commit
7dc43ea503
1 file changed
+1
-1
@@ -1377,7 +1377,7 @@ class msg_block:
|
|||||||
# for cases where a user needs tighter control over what is sent over the wire
|
# for cases where a user needs tighter control over what is sent over the wire
|
||||||
# note that the user must supply the name of the msgtype, and the data
|
# note that the user must supply the name of the msgtype, and the data
|
||||||
class msg_generic:
|
class msg_generic:
|
||||||
__slots__ = ("data")
|
__slots__ = ("msgtype", "data")
|
||||||
|
|
||||||
def __init__(self, msgtype, data=None):
|
def __init__(self, msgtype, data=None):
|
||||||
self.msgtype = msgtype
|
self.msgtype = msgtype
|
||||||
|
|||||||
Reference in new issue
Block a user