#4151 closed defect (fixed)
[PATCH] Remove deprecated SendGetRatingList
Reported by: | elexis | Owned by: | sbirmi |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 22 |
Component: | Multiplayer lobby | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
Since r16964, the SendGetRatingList
calls from lobby.js
are ignored on the server side (XpartaMupp.py
) as they were too spammy.
The other remains in XmppClient.cpp
and lobby.js
, potentially StanzaExtensions.cpp
should be removed as well.
Attachments (2)
Change History (9)
comment:1 by , 7 years ago
Owner: | set to |
---|
comment:2 by , 7 years ago
by , 7 years ago
Attachment: | 4151-remove-sendgetratinglist-rev1.patch added |
---|
remove SendGetRatingList
comment:3 by , 7 years ago
Keywords: | rfc patch added |
---|---|
Milestone: | Backlog → Work In Progress |
Summary: | Remove deprecated SendGetRatingList → [PATCH] Remove deprecated SendGetRatingList |
comment:4 by , 7 years ago
Thanks for your patches! Please don't forget to add your nickname and perhaps realname to the programming.json
file, so we have you in the contributor list.
by , 7 years ago
Attachment: | 4151-remove-sendgetratinglist-rev2.patch added |
---|
adding name to programming.json
comment:6 by , 7 years ago
Description: | modified (diff) |
---|---|
Keywords: | simple rfc removed |
Milestone: | Work In Progress → Alpha 22 |
Thanks for the patch and sorry that it took so long again!
comment:7 by , 7 years ago
There is still code in EcheL0n.py:sendRatingList() which seems to reply to rating list requests. Should that be kept?
Yes, it must be kept as that request is sent from XPartaMupp.
However (unrelated to this client side change), there should be a check that this request is sent by a trustworthy client. I've discussed this with scythetwirler on irc yesterday and we think that a moderator check should be sufficient (as opposed to adding a command line argument for the name of the bot).
Again.. looks like a straightforward change. Might be obvious to others but I went looking. The leaderboard does not rely on rating list. With the patch I'm going to attach, I am removing SendGetRatingList() from the JSInterface_Lobby as well (which calls XmppClient's code which is also removed). Invocation from lobby.js is also removed.
There is still code in EcheL0n.py:sendRatingList() which seems to reply to rating list requests. Should that be kept?