summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/ircbot.rb')
-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