# :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="")
msg = _("no known filters")
end
else
- msg = _("known filters: ") << ar.join(", ")
+ msg = _("known filters: ") << ar.join(", ")
end
m.reply msg
end
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