diff mod_ircd/mod_ircd.in.lua @ 499:30e33292d738

mod_ircd: "finish" previous commit.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 05 Dec 2011 21:34:59 +0000
parents 2865eaf43c74
children db32236d7682
line wrap: on
line diff
--- 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.