Software /
code /
prosody
Changeset
5417:d13ec6622752
mod_groups: Add a public function other modules can use to determine if a JID belongs to a given group
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 03 Apr 2013 13:40:29 +0100 (2013-04-03) |
parents | 5416:0ba3a49d3863 |
children | 5418:7f270fbf3361 |
files | plugins/mod_groups.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_groups.lua Wed Apr 03 13:39:41 2013 +0100 +++ b/plugins/mod_groups.lua Wed Apr 03 13:40:29 2013 +0100 @@ -121,3 +121,8 @@ function module.unload() datamanager.remove_callback(remove_virtual_contacts); end + +-- Public for other modules to access +function group_contains(group_name, jid) + return groups[group_name][jid]; +end