summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2006-07-29 18:12:50 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2006-07-29 18:12:50 +0000
commit7d9d0fa8e3cd7377bc966576b2f75a0208c58c2f (patch)
treea5e805c5f73bebc5cc46d0a8a8aebc4e3ef8a2b2 /lib
parent571bb66a39be594f7d5af00336e3123ba00ea25c (diff)
just some tiny tweaks. giuseppe! you have been busy! :)
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index fac6c290..1f11e85f 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -17,12 +17,12 @@ def rawlog(level, message=nil, who_pos=1)
call_stack = caller
if call_stack.length > who_pos
who = call_stack[who_pos].sub(%r{(?:.+)/([^/]+):(\d+)(:in .*)?}) { "#{$1}:#{$2}#{$3}" }
+ who.gsub!(/./," ")
else
who = "(unknown)"
end
message.to_s.each_line { |l|
$logger.add(level, l.chomp, who)
- who.gsub!(/./," ")
}
end