# HG changeset patch # User Bjoern Kalkbrenner # Date 1279110460 -7200 # Node ID 35314bf3410aa3e7ca09720715e88dfe8087841c # Parent 2d63d50d97136d783570c624998bec6fb554e256 added correct NAME_REPLY on JOIN message reply diff -r 2d63d50d9713 -r 35314bf3410a mod_ircd/mod_ircd.lua --- a/mod_ircd/mod_ircd.lua Wed Jul 14 16:49:38 2010 +0800 +++ b/mod_ircd/mod_ircd.lua Wed Jul 14 14:27:40 2010 +0200 @@ -75,7 +75,11 @@ core_process_stanza(session, join_stanza); session.send(":"..session.nick.." JOIN :"..channel); session.send(":"..session.host.." 332 "..session.nick.." "..channel.." :Connection in progress..."); - session.send(":"..session.host.." 353 "..session.nick.." = "..channel.." :"..session.nick); + local nicks = session.nick; + for nick in pairs(joined_mucs[channel].occupants) do + nicks = nicks.." "..nick; + end + session.send(":"..session.host.." 353 "..session.nick.." = "..channel.." :"..nicks); session.send(":"..session.host.." 366 "..session.nick.." "..channel.." :End of /NAMES list."); end