summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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(" | ")