on master help sign in
*
dc5e8dfDevine Lu Linvega
scripts/hallway.js+1−1
@@ -146,7 +146,7 @@ function Hallway (sites) {
146 const parts = line.replace(' ', '\t').split('\t')
146 const parts = line.replace(' ', '\t').split('\t')
147 const date = parts[0].trim()
147 const date = parts[0].trim()
148 const body = escapeHtml(parts[1].trim()).trim()
148 const body = escapeHtml(parts[1].trim()).trim()
149− const channel = body.substr(0, 1) === '/' ? body.split(' ')[0].substr(1).toLowerCase() : null
149+ const channel = body.substr(0, 1) === '/' ? body.split(' ')[0].substr(1).toLowerCase() : body.substr(0, 1) === '@' ? 'veranda' : 'lobby'
150 const offset = new Date() - new Date(date)
150 const offset = new Date() - new Date(date)
151 entries.push({ date, body, author, offset, channel })
151 entries.push({ date, body, author, offset, channel })
152 }
152 }