From d59ecc6a793632d5327f652045b11bb27b9dff23 Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Thu, 10 Jun 2010 18:01:03 +0000 Subject: [PATCH] fixed variable scope --- exec/ircbots/dice/dicebot.js | 2 +- exec/ircbots/poker/pokerbot.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/exec/ircbots/dice/dicebot.js b/exec/ircbots/dice/dicebot.js index bfac5d9aaf..8d22656ac4 100644 --- a/exec/ircbots/dice/dicebot.js +++ b/exec/ircbots/dice/dicebot.js @@ -6,7 +6,7 @@ if there are duplicate command names, they will be superseded in the order in which they are loaded (in the order they are listed in ircbot.ini). */ -working_dir=this.dir; +var working_dir=this.dir; /* This method is executed by the IRCBot during its "save_everything()" cycle */ function save() diff --git a/exec/ircbots/poker/pokerbot.js b/exec/ircbots/poker/pokerbot.js index d5e11fd2ed..f63c575fb3 100644 --- a/exec/ircbots/poker/pokerbot.js +++ b/exec/ircbots/poker/pokerbot.js @@ -1,8 +1,8 @@ -poker_dir=this.dir; -poker_scores=[]; -notice_interval=10; //seconds -activity_timeout=120; -poker_games=[]; +var poker_dir=this.dir; +var poker_scores=[]; +var notice_interval=10; //seconds +var activity_timeout=120; +var poker_games=[]; // Game functions function save() @@ -61,7 +61,7 @@ function Poker_Game() function Poker_Player() { this.cards=[]; - this.money=100; + this.money=1000; this.bet=0; this.has_bet=false; this.active=true; -- GitLab