mod_ircd: "finish" previous commit.
--- 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.