summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircsocket.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb
index 23f29086..0f8a69dd 100644
--- a/lib/rbot/ircsocket.rb
+++ b/lib/rbot/ircsocket.rb
@@ -21,7 +21,11 @@ module Irc
end
def length
- @storage.length
+ length = 0
+ @storage.each {|c|
+ length += c[1].length
+ }
+ return length
end
def empty?