From 8d4a8afa58753f479434dfb7b80986d75a1713ec Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 14 Apr 2008 17:16:17 +0200 Subject: uno plugin: cleanly end all games on cleanup() --- data/rbot/plugins/games/uno.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index e8330457..8fd0d087 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -906,6 +906,11 @@ class UnoPlugin < Plugin @games[m.channel].end_game(true) end + def cleanup + @games.each { |k, g| g.end_game(true) } + super + end + def chan_reg(channel) @registry.sub_registry(channel.downcase) end -- cgit v1.2.3