]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
UNO! plugin: clean join_timer when game starts
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 10 Jul 2010 13:44:10 +0000 (15:44 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 10 Jul 2010 13:44:10 +0000 (15:44 +0200)
This prevents spurious messages about the game join timer being
cancelled when a game is ended by all players but one dropping out.

data/rbot/plugins/games/uno.rb

index 6ea0063355c162710dae4007df26acb1a5207709..e619027ceb2a7ee14abd4240a50868ad1a0b2cb2 100644 (file)
@@ -244,6 +244,7 @@ class UnoGame
   end
 
   def start_game
+    @join_timer = nil
     debug "Starting game"
     @players.shuffle!
     show_order