1 class HostPlugin < Plugin
2 Config.register Config::StringValue.new('host.path',
3 :default => '/usr/bin/host',
4 :desc => _('Path to the host program'))
6 def help(plugin, topic="")
7 "host <domain> => query nameserver about domain names and zones for <domain>"
11 @bot.config["host.path"]
15 m.reply Utils.safe_exec(host_path, params[:name])
18 plugin = HostPlugin.new
19 plugin.map 'host :name', :requirements => {:name => /^((\w|-|\.)+)$/}