Changeset 35423
- Timestamp:
- 09/19/09 01:58:31 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/net-irc/trunk/examples/hatena-star-stream.rb
r35104 r35423 49 49 50 50 @real, *@opts = @opts.name || @real.split(/\s+/) 51 @opts ||= [] 51 @opts = @opts.inject({}) {|r,i| 52 key, value = i.split("=") 53 r.update(key => value) 54 } 52 55 53 56 start_observer … … 116 119 } 117 120 118 post server_name, NOTICE, main_channel, "↓ #{entry} #{title(entry)}" if s.length > 0 121 post server_name, NOTICE, main_channel, "#{entry} #{title(entry)}" if s.length > 0 122 if @opts.key?("metadata") 123 post "metadata", NOTICE, main_channel, JSON.generate({ "uri" => entry }) 124 end 119 125 120 126 s.each do |star|
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)