summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/urban.rb
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-06-26 00:03:38 +0400
committerdmitry kim <jason@nichego.net>2008-06-26 00:03:38 +0400
commitbf078e44fb84d5fdca18cdbf0ffe7ee86489da3e (patch)
tree5960f52bfa4d6ed15667fa6bab43b4d1520af3eb /data/rbot/plugins/urban.rb
parentbaee671df9879de90925425f7998904ce3b049fa (diff)
* (plugins/urban): fix the errors introduced by jsn- in the previous commit
Diffstat (limited to 'data/rbot/plugins/urban.rb')
-rw-r--r--data/rbot/plugins/urban.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb
index 9c55a06e..24c11dd7 100644
--- a/data/rbot/plugins/urban.rb
+++ b/data/rbot/plugins/urban.rb
@@ -48,7 +48,7 @@ class UrbanPlugin < Plugin
resp = @bot.httputil.head('http://www.urbandictionary.com/random.php',
:max_redir => -1,
:cache => false)
- return m.reply "Couldn't get the urban dictionary word of the day" if resp.nil?
+ return m.reply "Couldn't get a random urban dictionary word" if resp.nil?
if resp.code == "302" && (loc = resp['location'])
words = URI.unescape(loc.match(/define.php\?term=(.*)$/)[1]) rescue nil
end