summaryrefslogtreecommitdiff
path: root/src/s_user.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
commit92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 (patch)
tree12d6666e4d74298b662271ffdca2b0735eb1f48a /src/s_user.c
parent99740e83f2f8a94467ba301431ca2c4192c4c2ed (diff)
- 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
Diffstat (limited to 'src/s_user.c')
-rw-r--r--src/s_user.c21
1 files changed, 2 insertions, 19 deletions
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()