# HG changeset patch # User Marco Cirillo # Date 1323120899 0 # Node ID 30e33292d7384fb27ec07407417a8a969da64d44 # Parent 2865eaf43c74fe2380a0ea53da163d8cccd97ee9 mod_ircd: "finish" previous commit. diff -r 2865eaf43c74 -r 30e33292d738 mod_ircd/mod_ircd.in.lua --- a/mod_ircd/mod_ircd.in.lua Mon Dec 05 21:31:03 2011 +0000 +++ b/mod_ircd/mod_ircd.in.lua Mon Dec 05 21:34:59 2011 +0000 @@ -310,10 +310,8 @@ if session.username then set_t_data(session, jid.join(session.username, component_jid, "ircd")); end - - if session.username and session.nick then -- send MOTD - send_motd(session); - end + + send_motd(session); end function commands.USER(session, params) @@ -333,9 +331,7 @@ return session.send{from=muc_server, "462", "USER", "You may not re-register."} end - if session.username and session.nick then -- send MOTD - send_motd(session); - end + send_motd(session); end function commands.USERHOST(session, params) -- can show only users on the gateway. Needed for some clients to determinate self hostmask.