Software /
code /
prosody-modules
Changeset
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 | 210:2d63d50d9713 |
children | 212:16b76c7b6316 |
files | mod_ircd/mod_ircd.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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