]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* external execute plugin default to non-absolute paths
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 30 Jun 2008 13:55:23 +0000 (15:55 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 30 Jun 2008 14:00:35 +0000 (16:00 +0200)
data/rbot/plugins/cal.rb
data/rbot/plugins/figlet.rb
data/rbot/plugins/host.rb
data/rbot/plugins/spell.rb

index bfac39e5be1f77db366e50bd16d761be10ee449c..9190f8e9dbbefb8f10149fa11c0e8c254c8bbf72 100644 (file)
@@ -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="")
index 7a3d1935c022baa1c1b7533257533e3d4a04cf92..1b0c9fc0fc73caef85bd09f46e11acf1c49c62e6 100644 (file)
@@ -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 })
 
index c5fbcdaa0f259a969a012512893d34843e424d38..e81386ceb5fa61b86cabaaca9fa6b28745d4f9d7 100644 (file)
@@ -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="")
index 9298c2861c1cff65d5563e95f084ee59e0f78a13..5c98430bdea9c3ab6e76fa70a797fe66b5d89a9d 100644 (file)
@@ -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',