end
def listen(m)
+ return if m.sourcenick.nil?
# keep database up to date with who last said what
if m.kind_of?(PrivMessage)
- return if m.private? || m.address?
+ return if m.private?
if m.action?
@registry[m.sourcenick] = Saw.new(m.sourcenick.dup, Time.new, "ACTION",
m.target, m.message.dup)
when "JOIN"
ret += "joining #{saw.where}"
when "QUIT"
- ret += "quiting IRC (#{saw.message})"
+ ret += "quitting IRC (#{saw.message})"
when "TOPIC"
ret += "changing the topic of #{saw.where} to #{saw.message}"
end