diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/urban.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb index 68ffadba..cdef78ee 100644 --- a/data/rbot/plugins/urban.rb +++ b/data/rbot/plugins/urban.rb @@ -22,7 +22,7 @@ class UrbanPlugin < Plugin notfound = s.match %r{<i>.*?</i> isn't defined} numpages = if s[%r{<div id='paginator'>.*?</div>}m] - $&.scan(/\d+/).collect {|x| x.to_i}.max + $&.scan(/\d+/).collect {|x| x.to_i}.max || 1 else 1 end rv = Array.new |