From 4b2771012b08680cb7adf9c843ab3074540e66cf Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 15 Dec 2018 02:06:15 -0700 Subject: [PATCH] Show desc if set --- core/servers/content/gopher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/servers/content/gopher.js b/core/servers/content/gopher.js index 47fc3c6e..f5ae9cfa 100644 --- a/core/servers/content/gopher.js +++ b/core/servers/content/gopher.js @@ -341,7 +341,7 @@ ${msgBody} this.makeItem(ItemTypes.InfoMessage, '-'.repeat(70)), this.makeItem(ItemTypes.InfoMessage, `Message areas in ${conf.name}`), this.makeItem(ItemTypes.InfoMessage, '-'.repeat(70)), - ...areas.map(area => this.makeItem(ItemTypes.SubMenu, area.name, `/msgarea/${confTag}/${area.areaTag}`)) + ...areas.map(area => this.makeItem(ItemTypes.SubMenu, `${area.name} ${area.desc ? '- ' + area.desc : ''}`, `/msgarea/${confTag}/${area.areaTag}`)) ].join(''); return cb(response); @@ -362,7 +362,7 @@ ${msgBody} this.makeItem(ItemTypes.InfoMessage, 'Available Message Conferences'), this.makeItem(ItemTypes.InfoMessage, '-'.repeat(70)), this.makeItem(ItemTypes.InfoMessage, ''), - ...confs.map(conf => this.makeItem(ItemTypes.SubMenu, conf.name, `/msgarea/${conf.confTag}`)) + ...confs.map(conf => this.makeItem(ItemTypes.SubMenu, `${conf.name} ${conf.desc ? '- ' + conf.desc : ''}`, `/msgarea/${conf.confTag}`)) ].join(''); return cb(response);