From c7d8c8208498a2072f8e37e02790e8db74ba8ed2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 30 Jun 2008 15:55:23 +0200 Subject: [PATCH] * external execute plugin default to non-absolute paths --- data/rbot/plugins/cal.rb | 2 +- data/rbot/plugins/figlet.rb | 4 ++-- data/rbot/plugins/host.rb | 2 +- data/rbot/plugins/spell.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/rbot/plugins/cal.rb b/data/rbot/plugins/cal.rb index bfac39e5..9190f8e9 100644 --- a/data/rbot/plugins/cal.rb +++ b/data/rbot/plugins/cal.rb @@ -1,6 +1,6 @@ class CalPlugin < Plugin Config.register Config::StringValue.new('cal.path', - :default => '/usr/bin/cal', + :default => 'cal', :desc => _('Path to the cal program')) def help(plugin, topic="") diff --git a/data/rbot/plugins/figlet.rb b/data/rbot/plugins/figlet.rb index 7a3d1935..1b0c9fc0 100644 --- a/data/rbot/plugins/figlet.rb +++ b/data/rbot/plugins/figlet.rb @@ -7,7 +7,7 @@ class FigletPlugin < Plugin MAX_WIDTH=68 Config.register Config::StringValue.new('figlet.path', - :default => '/usr/bin/figlet', + :default => 'figlet', :desc => _('Path to the figlet program'), :on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet }) @@ -18,7 +18,7 @@ class FigletPlugin < Plugin :on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet }) Config.register Config::StringValue.new('toilet.path', - :default => '/usr/bin/toilet', + :default => 'toilet', :desc => _('Path to the toilet program'), :on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet }) diff --git a/data/rbot/plugins/host.rb b/data/rbot/plugins/host.rb index c5fbcdaa..e81386ce 100644 --- a/data/rbot/plugins/host.rb +++ b/data/rbot/plugins/host.rb @@ -1,6 +1,6 @@ class HostPlugin < Plugin Config.register Config::StringValue.new('host.path', - :default => '/usr/bin/host', + :default => 'host', :desc => _('Path to the host program')) def help(plugin, topic="") diff --git a/data/rbot/plugins/spell.rb b/data/rbot/plugins/spell.rb index 9298c286..5c98430b 100644 --- a/data/rbot/plugins/spell.rb +++ b/data/rbot/plugins/spell.rb @@ -5,7 +5,7 @@ class SpellPlugin < Plugin Config.register Config::StringValue.new('spell.path', - :default => '/usr/bin/ispell', + :default => 'ispell', :desc => _('Path to the program to use to check spelling')) Config.register Config::StringValue.new('spell.command_line', :default => '%s -a -S', -- 2.39.2