X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fseen.rb;h=aec5a064fa8ebbd7c990119a71ad87a17ccbecb9;hb=7d9d0fa8e3cd7377bc966576b2f75a0208c58c2f;hp=a8dc1af7b8afc3bdc298f9b6a77f30111b373c34;hpb=d30940cb5ff75cf7eab81f6a588b3b5297a762ad;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/seen.rb b/data/rbot/plugins/seen.rb index a8dc1af7..aec5a064 100644 --- a/data/rbot/plugins/seen.rb +++ b/data/rbot/plugins/seen.rb @@ -21,6 +21,7 @@ class SeenPlugin < Plugin 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? @@ -78,7 +79,7 @@ class SeenPlugin < Plugin 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