aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index eee6c95..7b5bccc 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -191,6 +191,11 @@ App.prototype.getReverseNameSync = function (name) {
return id
}
+App.prototype.getNameSync = function (name) {
+ var about = this.aboutCache.get(name)
+ return about && about.name
+}
+
function getMsgWithValue(sbot, id, cb) {
if (!id) return cb()
sbot.get(id, function (err, value) {