lib/slack-ruby-bot/client.rb in slack-ruby-bot-0.10.4 vs lib/slack-ruby-bot/client.rb in slack-ruby-bot-0.10.5

- old
+ new

@@ -12,11 +12,11 @@ def names [ SlackRubyBot::Config.user, self.self ? self.self.name : nil, - aliases, - SlackRubyBot::Config.aliases, + aliases ? aliases.map(&:downcase) : nil, + SlackRubyBot::Config.aliases ? SlackRubyBot::Config.aliases.map(&:downcase) : nil, self.self && self.self.id ? "<@#{self.self.id.downcase}>" : nil, SlackRubyBot::Config.user_id ? "<@#{SlackRubyBot::Config.user_id.downcase}>" : nil, self.self && self.self.id ? "<@#{self.self.id.downcase}>:" : nil, SlackRubyBot::Config.user_id ? "<@#{SlackRubyBot::Config.user_id.downcase}>:" : nil, self.self && self.self.name ? "#{self.self.name.downcase}:" : nil,