lib/robit/plugins/alias_nick.rb in robit-0.0.2 vs lib/robit/plugins/alias_nick.rb in robit-1.0.0

- old
+ new

@@ -65,12 +65,13 @@ tos = mentions.select { |m| db.keys.include? m } tos.each do |to| + rooms = db[to] - db[to].each do |name| + rooms.each do |name| rroom, hroom = nil, nil if name =~ /^@/ rroom = robut_room name raise if rroom.nil? @@ -91,10 +92,10 @@ else handle_email_notification subject, notification, name end end - reply "Notified #{to_sentence db[to]}." + reply "Notified #{to_sentence rooms}." unless rooms.empty? end end def handle_hipchat_notification notification, hroom \ No newline at end of file