summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-09 20:34:32 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-09 20:34:32 +0000
commit5f1c92ac9eb22f8b977d66147af663f12000338e (patch)
tree8ba23cac715685d668cfb522dc71a35283ada4b9
parentb3296b34fae299b885434a0b846327444c3c44a0 (diff)
fix minor warnings from figlet and imdb plugins
-rw-r--r--data/rbot/plugins/figlet.rb7
-rw-r--r--data/rbot/plugins/imdb.rb2
2 files changed, 5 insertions, 4 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")
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(" | ")