diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-09 20:34:32 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-09 20:34:32 +0000 |
commit | 5f1c92ac9eb22f8b977d66147af663f12000338e (patch) | |
tree | 8ba23cac715685d668cfb522dc71a35283ada4b9 /data/rbot/plugins/figlet.rb | |
parent | b3296b34fae299b885434a0b846327444c3c44a0 (diff) |
fix minor warnings from figlet and imdb plugins
Diffstat (limited to 'data/rbot/plugins/figlet.rb')
-rw-r--r-- | data/rbot/plugins/figlet.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rbot/plugins/figlet.rb b/data/rbot/plugins/figlet.rb index cf9ee8e8..b8561f47 100644 --- a/data/rbot/plugins/figlet.rb +++ b/data/rbot/plugins/figlet.rb @@ -1,12 +1,13 @@ -DEFAULT_FONTS = ['rectangles', 'smslant'] -MAX_WIDTH=68 - class FigletPlugin < Plugin + DEFAULT_FONTS = ['rectangles', 'smslant'] + MAX_WIDTH=68 + def initialize super @figlet_path = "/usr/bin/figlet" # check that figlet actually has the font installed + @figlet_font = nil for fontname in DEFAULT_FONTS # check if figlet can render this font properly if system("#{@figlet_path} -f #{fontname} test test test") |