summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-24 15:45:17 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-24 17:39:39 +0200
commit7149b0ff091f7d0f61027579c8b3dd6946808ee0 (patch)
tree7d2a5dd9573c85f0444cf66037da9ba4be97251e /data/rbot
parentf95875a105566b1b81b2c8120e7fb7f5b0a840df (diff)
figlet plugin: fix font usage and defaults
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/figlet.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/figlet.rb b/data/rbot/plugins/figlet.rb
index c15916c9..d95b0c58 100644
--- a/data/rbot/plugins/figlet.rb
+++ b/data/rbot/plugins/figlet.rb
@@ -12,7 +12,7 @@ class FigletPlugin < Plugin
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('figlet.font',
- :default => 'rectangles',
+ :default => 'smslant',
:desc => _('figlet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
@@ -23,7 +23,7 @@ class FigletPlugin < Plugin
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
Config.register Config::StringValue.new('toilet.font',
- :default => 'rectangles',
+ :default => 'smslant',
:desc => _('toilet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
@@ -65,7 +65,7 @@ class FigletPlugin < Plugin
@params[:figlet] = ['-k', '-w', MAX_WIDTH.to_s, '-C', 'utf8']
# add the font from DEFAULT_FONTS to the cmdline (if figlet has that font)
- @params[:figlet] += ['-f', figlet_font] if @has_figlet_font
+ @params[:figlet] += ['-f', figlet_font] if @has[:figlet_font]
end
def test_toilet
@@ -79,7 +79,7 @@ class FigletPlugin < Plugin
@params[:toilet] = ['-k', '-w', MAX_WIDTH.to_s, '-E', 'utf8', '--irc']
# add the font from DEFAULT_FONTS to the cmdline (if toilet has that font)
- @params[:toilet] += ['-f', toilet_font] if @has_toilet_font
+ @params[:toilet] += ['-f', toilet_font] if @has[:toilet_font]
# add the filters, if any
toilet_filters.each { |f| @params[:toilet] += ['-F', f.dup] }