Diff

plugins/mod_groups.lua @ 5420:706053e3f9f5

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Apr 2013 13:53:21 +0100
parent 5418:7f270fbf3361
child 5747:23076ee191d3
line wrap: on
line diff
--- a/plugins/mod_groups.lua	Sun Mar 31 13:21:19 2013 +0100
+++ b/plugins/mod_groups.lua	Wed Apr 03 13:53:21 2013 +0100
@@ -13,7 +13,7 @@
 local groups_file;
 
 local jid, datamanager = require "util.jid", require "util.datamanager";
-local jid_bare, jid_prep = jid.bare, jid.prep;
+local jid_prep = jid.prep;
 
 local module_host = module:get_host();
 
@@ -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