Fixed server message broadcasting

This commit is contained in:
Artem30801
2020-02-17 20:25:29 +03:00
parent fe38e82573
commit 97194d1271

View File

@@ -357,8 +357,8 @@ class Client(messaging.ConnectionManager):
@classmethod
@requires_any_connected
def broadcast_message(cls, command, args=None, force_all=False):
cls.broadcast(messaging.MessageManager.create_action_message(command, args), force_all)
def broadcast_message(cls, command, args=(), kwargs=None, force_all=False):
cls.broadcast(messaging.MessageManager.create_action_message(command, args, kwargs), force_all)
if __name__ == '__main__':