on master help sign in
*
commitdc5e8df95bd3c023c564e1294c35e9b423bd0d02 authorDevine Lu Linvega <aliceffekt@gmail.com> dateWed 3 Jul 2019, 22:47 (7 years ago) parent1341c0e
1 file changed+1−1
scripts/hallway.js+1−1
scripts/hallway.js+1−1
@@ -146,7 +146,7 @@ function Hallway (sites) {
146146 const parts = line.replace(' ', '\t').split('\t')
147147 const date = parts[0].trim()
148148 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'
150150 const offset = new Date() - new Date(date)
151151 entries.push({ date, body, author, offset, channel })
152152 }