diff options
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c index ba4db702c..c215ed1f8 100644 --- a/content/content.c +++ b/content/content.c @@ -989,6 +989,17 @@ bool content_matches_quirks(struct content *c, bool quirks) } /** + * Determine if a content is shareable + * + * \param c Content to consider + * \return True if content is shareable, false otherwise + */ +bool content_is_shareable(struct content *c) +{ + return handler_map[c->type].no_share == false; +} + +/** * Send a message to all users. */ |