Comparison

plugins/mod_groups.lua @ 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
parent 5373:9e6d6cdf0449
child 5418:7f270fbf3361
comparison
equal deleted inserted replaced
5416:0ba3a49d3863 5417:d13ec6622752
119 end 119 end
120 120
121 function module.unload() 121 function module.unload()
122 datamanager.remove_callback(remove_virtual_contacts); 122 datamanager.remove_callback(remove_virtual_contacts);
123 end 123 end
124
125 -- Public for other modules to access
126 function group_contains(group_name, jid)
127 return groups[group_name][jid];
128 end