# HG changeset patch # User Matthew Wild # Date 1364992829 -3600 # Node ID d13ec66227528cce92d9c7c69136aad2f725b468 # Parent 0ba3a49d3863b4e0a305b494d1b39f8de570794c mod_groups: Add a public function other modules can use to determine if a JID belongs to a given group diff -r 0ba3a49d3863 -r d13ec6622752 plugins/mod_groups.lua --- 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