diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-07 23:38:01 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-07 23:38:01 +0200 |
commit | 793e2f0604faa81fd8764a66389b44559a753772 (patch) | |
tree | 5364d1127f1c1573bd32b5366c9f495911b33153 /data | |
parent | b08fa27d52b25b4a001acd403490ba4cb05b245f (diff) |
spell plugin: it's spell.path, not spell.program
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/spell.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/spell.rb b/data/rbot/plugins/spell.rb index 5c98430b..ba5cfc19 100644 --- a/data/rbot/plugins/spell.rb +++ b/data/rbot/plugins/spell.rb @@ -9,7 +9,7 @@ class SpellPlugin < Plugin :desc => _('Path to the program to use to check spelling')) Config.register Config::StringValue.new('spell.command_line', :default => '%s -a -S', - :desc => _('Command line used to call the spell.program. Use %s as a placeholder for the executable name')) + :desc => _('Command line used to call the spell.path. Use %s as a placeholder for the executable name')) def help(plugin, topic="") _("spell <word> => check spelling of <word>, suggest alternatives") @@ -21,7 +21,7 @@ class SpellPlugin < Plugin end begin - IO.popen(@bot.config['spell.command_line'] % @bot.config['spell.program'], "w+") { |p| + IO.popen(@bot.config['spell.command_line'] % @bot.config['spell.path'], "w+") { |p| p.puts m.params p.close_write p.each_line { |l| @@ -39,11 +39,11 @@ class SpellPlugin < Plugin } } rescue - m.reply(_("couldn't exec %{prog} :(") % {:prog => @bot.config['spell.program']}) + m.reply(_("couldn't exec %{prog} :(") % {:prog => @bot.config['spell.path']}) return end m.reply(_("something odd happened while checking %{word} with %{prog}") % { - :word => m.params, :prog => @bot.config['spell.program'] + :word => m.params, :prog => @bot.config['spell.path'] }) end end |