Commit 36e9d99a2b067d300cb2d88320e7fd47128ad134
ignore about messages with no target
Matt McKegg committed on 11/8/2016, 5:41:49 AMParent: 17fd4824c74af975058e6ff58183c3d8a13aadcd
Files changed
modules/about.js | changed |
modules/about.js | ||
---|---|---|
@@ -13,9 +13,9 @@ | ||
13 | 13 … | var avatar_name = plugs.first(exports.avatar_name = []) |
14 | 14 … | var avatar_link = plugs.first(exports.avatar_link = []) |
15 | 15 … | |
16 | 16 … | exports.message_content = function (msg) { |
17 | - if(msg.value.content.type !== 'about') return | |
17 … | + if(msg.value.content.type !== 'about' || !msg.value.content.about) return | |
18 | 18 … | |
19 | 19 … | if(!msg.value.content.image && !msg.value.content.name) |
20 | 20 … | return |
21 | 21 … |
Built with git-ssb-web