ejabberd - Comments for "Message of the Day (motd) question" https://www.ejabberd.im/node/4857 en Ah, thanks to you both. https://www.ejabberd.im/node/4857#comment-57631 <p>Ah, thanks to you both.</p> Fri, 22 Jul 2011 12:02:08 +0000 jcmacph comment 57631 at https://www.ejabberd.im No, you just need to get the https://www.ejabberd.im/node/4857#comment-57629 <p>No, you just need to get the source, and there modify and recompile just one module:<br /> <code>erlc mod_announce.erl</code><br /> Then you need to replace the original mod_announce.beam with the new compiled one.</p> Fri, 22 Jul 2011 03:38:05 +0000 mikekaganski comment 57629 at https://www.ejabberd.im I take it I'll need to have https://www.ejabberd.im/node/4857#comment-57628 <p>I take it I'll need to have installed from downloading the source and compiling it rather than just downloading the Linux x86 64bit installer? There's no ejabberd.cfg option to change it?</p> Thu, 21 Jul 2011 18:30:00 +0000 jcmacph comment 57628 at https://www.ejabberd.im With this change, the MOTD https://www.ejabberd.im/node/4857#comment-57625 <p>With this change, the MOTD will be sent to each user every time he logins:</p> <pre> --- a/src/mod_announce.erl +++ b/src/mod_announce.erl @@ -824,8 +824,6 @@ send_motd(#jid{luser = LUser, lserver = LServer} = JID) -&gt; [#motd{packet = Packet}] -&gt; US = {LUser, LServer}, case catch mnesia:dirty_read({motd_users, US}) of - [#motd_users{}] -&gt; - ok; _ -&gt; Local = jlib:make_jid("", LServer, ""), ejabberd_router:route(Local, JID, Packet), </pre> Thu, 21 Jul 2011 14:50:44 +0000 mfoss comment 57625 at https://www.ejabberd.im