From 5f1c92ac9eb22f8b977d66147af663f12000338e Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 9 Apr 2007 20:34:32 +0000 Subject: fix minor warnings from figlet and imdb plugins --- data/rbot/plugins/figlet.rb | 7 ++++--- data/rbot/plugins/imdb.rb | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'data') 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") diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index a70b2b3b..78060142 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -420,7 +420,7 @@ class ImdbPlugin < Plugin end end if info.length == 1 - m.reply Utils.decode_html_entities info.first.join("\n") + m.reply Utils.decode_html_entities(info.first.join("\n")) else m.reply info.map { |si| Utils.decode_html_entities si.join(" | ") -- cgit v1.2.3