lib/slack/smart-bot/treat_message.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/treat_message.rb in slack-smart-bot-1.13.0

- old
+ new

@@ -288,10 +288,10 @@ rescue Exception => stack @logger.fatal stack end else - @logger.warn "Pay attention there is no user on users with id #{data.user}" if user_info.nil? + @logger.warn "Pay attention there is no user on users with id #{data.user}" if user_info.nil? and data.user.to_s!='' if !config.on_master_bot and !dest.nil? and (data.channel == @master_bot_id or dest[0] == "D") and data.text.match?(/^\s*(!|!!|\^)?\s*bot\s+status\s*$/i) and @admin_users_id.include?(data.user) respond "ping from #{config.channel}", dest elsif !config.on_master_bot and !dest.nil? and data.user == config[:nick_id] and dest == @master_bot_id # to treat on other bots the status messages populated on master bot