From 53d592c4d42c949aca32073e00cedb44f6d90888 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 24 Mar 2007 11:20:26 +0000 Subject: url plugin: when reading body chunks, don't discard read material --- data/rbot/plugins/url.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/rbot/plugins/url.rb') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index e55999ee..84ee7e43 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -40,10 +40,10 @@ class UrlPlugin < Plugin amount_read += chunk.length - if amount_read > amount - amount_of_overflow = amount_read - amount - chunk = chunk[0...-amount_of_overflow] - end + # if amount_read > amount + # amount_of_overflow = amount_read - amount + # chunk = chunk[0...-amount_of_overflow] + # end chunks << chunk -- cgit v1.2.3