Skip to content

Instantly share code, notes, and snippets.

@mjmac
Created March 30, 2010 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjmac/349317 to your computer and use it in GitHub Desktop.
Save mjmac/349317 to your computer and use it in GitHub Desktop.
speakers = %w{mjmac sven}
now = DateTime.now
start_at = DateTime.parse("2010-03-25 10:52#{now.zone}")
end_at = DateTime.parse("2010-03-25 11:20#{now.zone}")
cl = Colloquy::Log.parse(cqxf) do |log, msg|
if msg.received.between?(start_at, end_at) and
speakers.include?(msg.sender_nick)
log.messages << msg
end
end
puts cl.to_txt('%d %b@%H:%M')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment