spring / uberserver

uberserver, a matchmaking/chat lobby server for the spring rts project
https://springrts.com/wiki/Uberserver
Other
33 stars 38 forks source link

Traceback in in_SAYFROM #395

Closed abma closed 1 year ago

abma commented 1 year ago

2022-09-30 22:48:43 ERROR twistedserver.dataReceived:71 Error in handling data from client: appservice 78.46.21.29:51642 exception: add_channel_message() missing 2 required positional arguments: 'msg' and 'ex_msg' command: b'SAYFROM springlobby springrts.com id_30072 Hmm\r\n' Traceback (most recent call last): File "/home/lobby/uberserver/twistedserver.py", line 64, in dataReceived self.Handle(data.decode("utf-8")) File "/home/lobby/uberserver/Client.py", line 166, in Handle self.HandleProtocolCommands(self.data.split("\n"), flood_limits) File "/home/lobby/uberserver/Client.py", line 202, in HandleProtocolCommands self.HandleProtocolCommand(command) File "/home/lobby/uberserver/Client.py", line 172, in HandleProtocolCommand self._root.protocol._handle(self, cmd) File "protocol/Protocol.py", line 397, in _handle function(*([client] + fun_args)) File "protocol/Protocol.py", line 1439, in in_SAYFROM self.userdb.add_channel_message(channel.id, client.user_id, msg) TypeError: add_channel_message() missing 2 required positional arguments: 'msg' and 'ex_msg'

abma commented 1 year ago

https://github.com/spring/uberserver/commit/9c793d690d75b2c88c5ad67561174ebdce392dc5

abma commented 1 year ago

no clue why the duplicate line "self.userdb.add_channel_message(...":

https://github.com/spring/uberserver/commit/9c793d690d75b2c88c5ad67561174ebdce392dc5#diff-7ed989e695c7bf59655c5b9fef81fcfcd09f29895a8bcf029d93a9e884c6d6d0R1428