X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=fe18941366032ce9766715284798a17204d24c5b;hb=4ac41c44a18777ad3003abf0c51955f81e5e9f0a;hp=22ffe45de982a0d3ce8f688837bc83d1c8f203f8;hpb=8d15beb4880d40c89d893a3423fb1d0f0ffbc2c6;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 22ffe45d..fe189413 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -1134,7 +1134,9 @@ export default { this.challenges.splice(challToDelIdx, 1); } this.send("newchallenge", { - data: Object.assign({ from: this.st.user.sid }, chall) + data: Object.assign( + // Temporarily add sender infos to display challenge on Discord. + { from: this.st.user.sid, sender: this.st.user.name }, chall) }); // Add new challenge: chall.from = { @@ -1309,6 +1311,7 @@ export default { // on game just after, the main Hall will be notified. }; if (c.type == "live") { + // TODO: ask my IP + opp IP, to add to game infos? (potential bans) notifyNewgame(); this.startNewGame(gameInfo); // Increment game stats counter in DB