summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-10-21 18:43:56 +0300
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-10-21 19:03:48 +0200
commit49ddfa785796f3ae4550ace918fd8282bd91e42a (patch)
tree7aaaaa95d8015fe37889337ab324c00f40cadcc1
parent7f9a979b04fbacda7343b1bcbda1ce83bfb31402 (diff)
urban: fix regex for detecting an undefined term
-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 6f052fcf..f4355061 100644
--- a/data/rbot/plugins/urban.rb
+++ b/data/rbot/plugins/urban.rb
@@ -19,7 +19,7 @@ class UrbanPlugin < Plugin
s = @bot.httputil.get(u)
return m.reply("Couldn't get the urban dictionary definition for #{word}") if s.nil?
- notfound = s.match %r{<div style="color: #669FCE"><i>.*?</i> isn't defined}
+ notfound = s.match %r{<i>.*?</i> isn't defined}
numpages = s[%r{<div id='paginator'>.*?</div>}m].scan(/\d+/).collect {|x| x.to_i}.max || 1