Skip to content
Snippets Groups Projects
Commit f393b9ee authored by cyan's avatar cyan
Browse files

* Fix incorrect hand order, plus NOTICE on idle warning

parent 36db530a
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,6 @@ this.Server_command=function(srv,cmdline,onick,ouh) ...@@ -36,7 +36,6 @@ this.Server_command=function(srv,cmdline,onick,ouh)
//////////////////// Non-object Functions //////////////////// //////////////////// Non-object Functions ////////////////////
function poker_deal_hole_cards(target,srv) { function poker_deal_hole_cards(target,srv) {
var poker_game=poker_games[target]; var poker_game=poker_games[target];
poker_game.round = 1;
for (p in poker_game.users) { for (p in poker_game.users) {
poker_game.users[p].cards[0] = poker_game.deck.deal(); poker_game.users[p].cards[0] = poker_game.deck.deal();
poker_game.users[p].cards[1] = poker_game.deck.deal(); poker_game.users[p].cards[1] = poker_game.deck.deal();
......
...@@ -26,7 +26,8 @@ this.main=function(srv,target) ...@@ -26,7 +26,8 @@ this.main=function(srv,target)
break; break;
} else { } else {
delete poker.users[u]; delete poker.users[u];
srv.o(u,"You have been idle too long. Type 'DEAL' here to resume playing poker."); srv.o(u,"You have been idle too long. "
+ "Type 'DEAL' here to resume playing poker.", "NOTICE");
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment