lib/agig/session.rb in agig-0.0.2 vs lib/agig/session.rb in agig-0.0.3

- old
+ new

@@ -77,10 +77,10 @@ end entries.reverse_each do |entry| next if entry[:datetime] <= @last_retrieved type = entry[:id][%r|tag:github.com,2008:(.+?)/\d+|, 1] - channel = ACTIVITIES.include? type ? '#activity' : main_channel + channel = ACTIVITIES.include?(type) ? '#activity' : main_channel post entry[:author], PRIVMSG, channel, "\003#{EVENTS[type] || '5'}#{entry[:title]}\017 \00314#{entry[:link]}\017" end @last_retrieved = entries.first[:datetime] @log.info 'sleep'