comparison mod_ircd/mod_ircd.lua @ 211:35314bf3410a

added correct NAME_REPLY on JOIN message reply
author Bjoern Kalkbrenner <terminar@cyberphoria.org>
date Wed, 14 Jul 2010 14:27:40 +0200
parents 1849614af19a
children 16b76c7b6316
comparison
equal deleted inserted replaced
210:2d63d50d9713 211:35314bf3410a
73 joined_mucs[channel].sessions[session] = true; 73 joined_mucs[channel].sessions[session] = true;
74 local join_stanza = st.presence({ from = session.full_jid, to = channel:gsub("^#", "").."@"..conference_server.."/"..session.nick }); 74 local join_stanza = st.presence({ from = session.full_jid, to = channel:gsub("^#", "").."@"..conference_server.."/"..session.nick });
75 core_process_stanza(session, join_stanza); 75 core_process_stanza(session, join_stanza);
76 session.send(":"..session.nick.." JOIN :"..channel); 76 session.send(":"..session.nick.." JOIN :"..channel);
77 session.send(":"..session.host.." 332 "..session.nick.." "..channel.." :Connection in progress..."); 77 session.send(":"..session.host.." 332 "..session.nick.." "..channel.." :Connection in progress...");
78 session.send(":"..session.host.." 353 "..session.nick.." = "..channel.." :"..session.nick); 78 local nicks = session.nick;
79 for nick in pairs(joined_mucs[channel].occupants) do
80 nicks = nicks.." "..nick;
81 end
82 session.send(":"..session.host.." 353 "..session.nick.." = "..channel.." :"..nicks);
79 session.send(":"..session.host.." 366 "..session.nick.." "..channel.." :End of /NAMES list."); 83 session.send(":"..session.host.." 366 "..session.nick.." "..channel.." :End of /NAMES list.");
80 end 84 end
81 85
82 function commands.PART(session, channel) 86 function commands.PART(session, channel)
83 local channel, part_message = channel:match("^([^:]+):?(.*)$"); 87 local channel, part_message = channel:match("^([^:]+):?(.*)$");