     if m?
       nick = m[1]
       ts = parseTs m[2]
+      ampm = m[3]
       continue
 
     m = rxTsLine.exec line
     if m?
-      ts = parseTs m[1]
+      rawTs = m[1]
+      rawTs += ampm if ampm? and not m[2]?
+      ts = parseTs rawTs
       continue
 
     unless nick? and ts?

  parsed

module.exports = (lines) ->
  [nick, ts] = []

  result = []
  for line in lines

_ = require 'underscore'

# RegExp snippets for reuse
TS = '\\[(\d{1,2}:\d{2}( [aApP][mM])?)\\]' # [11:22 AM] *or* [16:00]

# RegExps
rxWs = /^\s*$/
