]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Call 'super' method from #cleanup() in all plugins
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 15:13:48 +0000 (15:13 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 15:13:48 +0000 (15:13 +0000)
data/rbot/plugins/games/shiritori.rb
data/rbot/plugins/httpd.rb.disabled
data/rbot/plugins/quotes.rb
data/rbot/plugins/remind.rb
data/rbot/plugins/rss.rb
data/rbot/plugins/unicode.rb

index 590e990d362a25b0567e5f2e07f903d5f9e5ffe4..011cb28c1041b48cf521763be224dddbf10d763f 100644 (file)
@@ -454,6 +454,7 @@ class ShiritoriPlugin < Plugin
   def cleanup
     @games.each_key {|g| g.die}
     @games.clear
+    super
   end
 end
 
index 92fe3a80969eb6371f0bb14f3b6f35ab2a320ff8..ccfb42e2de69f6fcaf1ae25c706e643066a7e81e 100644 (file)
@@ -23,6 +23,7 @@ class HttpPlugin < Plugin
   end
   def cleanup
     @http_server.shutdown
+    super
   end
   def help(plugin, topic="")
     "no help yet"
index 2d9bedcd00b614cc872b877b54c2f5a4ee7ec798..73f1b9e7f7c9e397d4a32f35c080966328d87af3 100644 (file)
@@ -53,6 +53,7 @@ class QuotePlugin < Plugin
   def cleanup
     @lists.clear
     @changed.clear
+    super
   end
 
   def addquote(source, channel, quote)
index 6ce179c49a8694371f30bf1e28e322748da07de0..0d6e9eccb88c8f1f9c4fa4a0bfd68bc7cd884f67 100644 (file)
@@ -112,6 +112,7 @@ class RemindPlugin < Plugin
       }
     }
     @reminders.clear
+    super
   end
   def help(plugin, topic="")
     "reminder plugin: remind <who> [about] <message> in <time>, remind <who> [about] <message> every <time>, remind <who> [about] <message> at <time>, remind <who> no more [about] <message>, remind <who> no more. Generally <who> should be 'me', but you can remind others (nick or channel) if you have remind_others auth"
index 094b4571bf6b5ca56e28bae4e6cddf653d8807b5..905daad81ffcfa49c36fc88ea484441c8a5bdbda 100644 (file)
@@ -319,6 +319,7 @@ class RSSFeedsPlugin < Plugin
 \r
   def cleanup\r
     stop_watches\r
+    super\r
   end\r
 \r
   def save\r
index 3c0cd396ee6ddcbbe2268ace134b66ab697b2299..e05f87dd66a7d1414346e1d24a2c582676802a37 100644 (file)
@@ -75,6 +75,7 @@ class UnicodePlugin < Plugin
         debug "cleaning up encodings"
         @bot.socket.filter = nil
         $KCODE = @old_kcode
+        super
     end
 
     def UnicodePlugin.reconfigure_filter(bot)