plugins/tell.lua

changeset 13
ff9790b827b7
parent 12
d7ce8ba2c462
child 20
4f4d98345952
equal deleted inserted replaced
12:d7ce8ba2c462 13:ff9790b827b7
38 room:hook("occupant-joined", function (occupant) 38 room:hook("occupant-joined", function (occupant)
39 if(tellings[occupant.nick] ~= nil) then 39 if(tellings[occupant.nick] ~= nil) then
40 for _,msg in ipairs(tellings[occupant.nick]) do 40 for _,msg in ipairs(tellings[occupant.nick]) do
41 room:send_message(occupant.nick .. ": Welcome back! " .. msg.from .. " told me, to tell you, \"" .. msg.msg .. "\"."); 41 room:send_message(occupant.nick .. ": Welcome back! " .. msg.from .. " told me, to tell you, \"" .. msg.msg .. "\".");
42 end 42 end
43 tellings[occupant.nick] = nil;
43 end 44 end
44 end); 45 end);
45 end); 46 end);
46 end 47 end
47 48

mercurial