summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-21 20:51:55 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-21 20:51:55 +0000
commitcf034a9ce7ffb734db1738129ffaf5393487b14b (patch)
tree6f8c232e87b0d4f315883c4d9a9cdda3797242ca /lib
parentefc715a7d083448c6d2a3859d3c103abf37cc984 (diff)
Fix message queue length
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?