From 92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 31 May 2013 18:59:22 +0000 Subject: - Implement motd{} configuration blocks based on ircu's implementation git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2151 82007160-df01-0410-b94d-b575c5fd34c7 --- src/s_user.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'src/s_user.c') diff --git a/src/s_user.c b/src/s_user.c index 095100e..e480da3 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -51,7 +51,7 @@ #include "s_misc.h" #include "parse.h" #include "watch.h" - +#include "message.h" static char umode_buffer[IRCD_BUFSIZE]; @@ -1171,24 +1171,7 @@ user_welcome(struct Client *source_p) source_p->name, source_p->id); show_lusers(source_p); - - if (ConfigFileEntry.short_motd) - { - sendto_one(source_p, ":%s NOTICE %s :*** Notice -- motd was last changed at %s", - me.name, source_p->name, ConfigFileEntry.motd.lastChangedDate); - sendto_one(source_p, - ":%s NOTICE %s :*** Notice -- Please read the motd if you haven't " - "read it", me.name, source_p->name); - sendto_one(source_p, form_str(RPL_MOTDSTART), - me.name, source_p->name, me.name); - sendto_one(source_p, form_str(RPL_MOTD), - me.name, source_p->name, - "*** This is the short motd ***"); - sendto_one(source_p, form_str(RPL_ENDOFMOTD), - me.name, source_p->name); - } - else - send_message_file(source_p, &ConfigFileEntry.motd); + motd_signon(source_p); } /* check_xline() -- cgit