From 82e5e233ddb878a22a056439dc2f5b40ddf7312e Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 15 Feb 2008 00:40:05 +0100 Subject: bash plugin: check if the html is actually there --- data/rbot/plugins/bash.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/rbot') diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index 0524204a..6c12ce5e 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -98,6 +98,11 @@ class BashPlugin < Plugin end end + if not html + m.reply "unable to retrieve quotes" + return + end + html_quotes = html.split(/

/) html_quotes.each { |htqt| # debug htqt.inspect -- cgit v1.2.3