projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix forbidden captures and checks within first move for Eightpieces variant
[vchess.git]
/
server
/
sockets.js
diff --git
a/server/sockets.js
b/server/sockets.js
index
d96b696
..
c8f3c7f
100644
(file)
--- a/
server/sockets.js
+++ b/
server/sockets.js
@@
-165,7
+165,7
@@
module.exports = function(wss) {
// but the requested resource can be from any tmpId (except current!)
case "askidentity":
case "asklastate":
// but the requested resource can be from any tmpId (except current!)
case "askidentity":
case "asklastate":
- case "askchallenge":
+ case "askchallenge
s
":
case "askgame":
case "askfullgame": {
const pg = obj.page || page; //required for askidentity and askgame
case "askgame":
case "askfullgame": {
const pg = obj.page || page; //required for askidentity and askgame
@@
-201,7
+201,7
@@
module.exports = function(wss) {
// Notify all room: mostly game events
case "newchat":
case "newchallenge":
// Notify all room: mostly game events
case "newchat":
case "newchallenge":
- case "deletechallenge":
+ case "deletechallenge
_s
":
case "newgame":
case "resign":
case "abort":
case "newgame":
case "resign":
case "abort":
@@
-297,7
+297,7
@@
module.exports = function(wss) {
// Passing, relaying something: from isn't needed,
// but target is fully identified (sid + tmpId)
// Passing, relaying something: from isn't needed,
// but target is fully identified (sid + tmpId)
- case "challenge":
+ case "challenge
s
":
case "fullgame":
case "game":
case "identity":
case "fullgame":
case "game":
case "identity":