diff options
Diffstat (limited to 'data/rbot/plugins/seen.rb')
-rw-r--r-- | data/rbot/plugins/seen.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/data/rbot/plugins/seen.rb b/data/rbot/plugins/seen.rb index aec5a064..a697d19b 100644 --- a/data/rbot/plugins/seen.rb +++ b/data/rbot/plugins/seen.rb @@ -67,20 +67,20 @@ class SeenPlugin < Plugin ret += Utils.secs_to_string(ago) + " ago, " end - case saw.type - when "PUBLIC" + case saw.type.to_sym + when :PUBLIC ret += "saying #{saw.message}" - when "ACTION" + when :ACTION ret += "doing #{saw.nick} #{saw.message}" - when "NICK" + when :NICK ret += "changing nick from #{saw.nick} to #{saw.message}" - when "PART" + when :PART ret += "leaving #{saw.where}" - when "JOIN" + when :JOIN ret += "joining #{saw.where}" - when "QUIT" + when :QUIT ret += "quitting IRC (#{saw.message})" - when "TOPIC" + when :TOPIC ret += "changing the topic of #{saw.where} to #{saw.message}" end end |