summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorSpencer Rinehart <anubis@overthemonkey.com>2008-12-18 15:42:13 -0500
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-25 21:41:27 +0100
commitde6efcb1d676788f18021fa176caf87e2a5563f7 (patch)
tree6030789cbc6ea37c43f110f23f0c1b06020b7931 /data/rbot
parent221624ad01da6df33b6aa81c3cbd42cc380ac45d (diff)
uno: Mark all uno commands replied.
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/games/uno.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 84420631..a86c33db 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -880,6 +880,7 @@ class UnoPlugin < Plugin
return unless @games.key?(m.channel)
return unless m.plugin # skip messages such as: <someuser> botname,
g = @games[m.channel]
+ replied = true
case m.plugin.intern
when :jo # join game
return if m.params
@@ -945,7 +946,10 @@ class UnoPlugin < Plugin
else
g.show_turn(:cards => false)
end
+ else
+ replied=false
end
+ m.replied=true if replied
end
def create_game(m, p)