summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-06 14:30:42 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-06 14:30:42 +0000
commit099d3249797bdcbe87e0415b951b3dde3e98d9d5 (patch)
tree489d7465e35d7feb629c13cd5eafbc11ecdadbd0
parentfcbdd0acd15c13bda2c6ecda47e7686fca17b3cf (diff)
debug info to track hard-to-nail bug about disappearing hosts in botuser netmasks
-rw-r--r--lib/rbot/botuser.rb2
-rw-r--r--lib/rbot/maskdb.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index defb3a47..13f05f87 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -381,7 +381,9 @@ class Bot
@autologin = h[:autologin] if h.has_key?(:autologin)
if h.has_key?(:netmasks)
@netmasks = h[:netmasks]
+ debug @netmasks
@netmasks.each { |n| Auth.manager.maskdb.add(self, n) } if @autologin
+ debug @netmasks
end
@perm = h[:perm] if h.has_key?(:perm)
end
diff --git a/lib/rbot/maskdb.rb b/lib/rbot/maskdb.rb
index 38eb0cce..f15a442c 100644
--- a/lib/rbot/maskdb.rb
+++ b/lib/rbot/maskdb.rb
@@ -124,7 +124,7 @@ module Irc
def add(user, *masks)
masks.each do |m|
- debug "adding user #{user} with mask #{m}"
+ debug "adding user #{user} with mask #{m.fullform}"
@tree.add([user, m], *mask2keys(m))
end
end