diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-14 17:16:17 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-14 17:16:17 +0200 |
commit | 8d4a8afa58753f479434dfb7b80986d75a1713ec (patch) | |
tree | 0448c231b9e7ce1807d42d386ca8756ad5ebe74f /data | |
parent | da2edefc1b4ca6e8caf615d0a7dc4a14646f0785 (diff) |
uno plugin: cleanly end all games on cleanup()
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/games/uno.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |