]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/filters_ui.rb
fix: webservice dispatch syntax check
[user/henk/code/ruby/rbot.git] / lib / rbot / core / filters_ui.rb
index 6f5ecbb3210dd8254721e98757060cd5c70d54f2..47bd9f5cc741cc67118f4695adc68b57e02244c0 100644 (file)
@@ -4,15 +4,13 @@
 # :title: filters management from IRC
 #
 # Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
-# Copyright:: (C) 2008 Giuseppe Bilotta
-# License:: GPL v2
 
 class FiltersModule < CoreBotModule
 
   def initialize
     super
     @bot.clear_filters
-    @bot.register_filter(:htmlinfo) { |s| Utils.get_html_info(s.to_s, s) }
+    @bot.register_filter(:htmlinfo) { |s| Utils.get_html_info(@bot, s.to_s, s) }
   end
 
   def help(plugin, topic="")
@@ -29,7 +27,7 @@ class FiltersModule < CoreBotModule
         msg = _("no known filters")
       end
     else
-      msg = _("known filters: ") << ar.join(", ") 
+      msg = _("known filters: ") << ar.join(", ")
     end
     m.reply msg
   end
@@ -39,7 +37,7 @@ class FiltersModule < CoreBotModule
     if ar.empty?
       msg = _("no known filter groups")
     else
-      msg = _("known filter groups: ") << ar.join(", ") 
+      msg = _("known filter groups: ") << ar.join(", ")
     end
     m.reply msg
   end