aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_groups.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-03 13:40:29 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-03 13:40:29 +0100
commit9ce8aefa4c5c7350a9e202c7e50face0e95dd9d0 (patch)
treeb665a7aa9988ae7d5c469708680aba8cdbdd3894 /plugins/mod_groups.lua
parent6939d44f6f4c9938542f4c9a891e66d8b3582ae3 (diff)
downloadprosody-9ce8aefa4c5c7350a9e202c7e50face0e95dd9d0.tar.gz
prosody-9ce8aefa4c5c7350a9e202c7e50face0e95dd9d0.zip
mod_groups: Add a public function other modules can use to determine if a JID belongs to a given group
Diffstat (limited to 'plugins/mod_groups.lua')
-rw-r--r--plugins/mod_groups.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua
index 199925f9..9b39b16b 100644
--- a/plugins/mod_groups.lua
+++ b/plugins/mod_groups.lua
@@ -121,3 +121,8 @@ end
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