Comparison

plugins/muc/muc.lib.lua @ 1749:cf2ade983e12

MUC: Changed a MUC library method into a function.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 07 Sep 2009 20:40:11 +0500
parent 1746:3c60081ca10a
child 1750:a1c18470eeee
comparison
equal deleted inserted replaced
1748:f4c50c75af6f 1749:cf2ade983e12
513 return true; 513 return true;
514 end 514 end
515 515
516 local _M = {}; -- module "muc" 516 local _M = {}; -- module "muc"
517 517
518 function _M:new_room(jid) 518 function _M.new_room(jid)
519 return setmetatable({ 519 return setmetatable({
520 jid = jid; 520 jid = jid;
521 _jid_nick = {}; 521 _jid_nick = {};
522 _occupants = {}; 522 _occupants = {};
523 _data = {}; 523 _data = {};