From 752cb13c5e4734f879d061ce27933c0543214ecb Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Tue, 2 Jan 2001 08:26:51 +0000 Subject: [PATCH] Author: Isomer Log message: * Don't core if no motd present. Thanks to Amarande for that one. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@352 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 4 ++++ ircd/motd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 38e056b..e9007aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-01-02 Perry Lorier + * ircd/motd.c: don't core if the motd isn't found. Bug found by + Amarande. + 2001-01-02 Perry Lorier * ircd/s_err.c: Added third param to 004 - the channel modes that tage params. Used by hybrid/epic. * ircd/s_channels.c: Added fix for msg'ing a -n+m channel - thanks diff --git a/ircd/motd.c b/ircd/motd.c index 2dc5daa..4fe4a56 100644 --- a/ircd/motd.c +++ b/ircd/motd.c @@ -259,7 +259,7 @@ motd_signon(struct Client* cptr) cache = motd_cache(motd_lookup(cptr)); - if (!feature_bool(FEAT_NODEFAULTMOTD)) + if (!feature_bool(FEAT_NODEFAULTMOTD) || !cache) motd_forward(cptr, cache); else { send_reply(cptr, RPL_MOTDSTART, cli_name(&me)); -- 2.20.1