--- a/plugins/groupchat.lua Thu May 20 14:33:09 2010 +0100 +++ b/plugins/groupchat.lua Thu May 20 14:33:41 2010 +0100 @@ -29,14 +29,14 @@ local body = stanza:get_child("body"); local delay = stanza:get_child("delay", xmlns_delay); local event = { - room_jid = room_jid; - room = room; - sender = room.occupants[nick]; - nick = nick; - body = (body and body:get_text()) or nil; - stanza = stanza; - delay = (delay and delay.attr.stamp); - }; + room_jid = room_jid; + room = room; + sender = room.occupants[nick]; + nick = nick; + body = (body and body:get_text()) or nil; + stanza = stanza; + delay = (delay and delay.attr.stamp); + }; if stanza.name == "message" then local replied; local r = st.reply(stanza); @@ -67,7 +67,8 @@ local room = setmetatable({ bot = bot, jid = jid, nick = nick, occupants = {}, - events = events.new() }, room_mt); + events = events.new() + }, room_mt); self.rooms[jid] = room; local occupants = room.occupants; room:hook("presence", function (presence) @@ -77,7 +78,7 @@ nick = nick; jid = presence.stanza.attr.from; presence = presence.stanza; - }; + }; if nick == room.nick then room.bot:event("groupchat/joined", room); else