From: Perry Lorier Date: Tue, 2 Jan 2001 08:26:51 +0000 (+0000) Subject: Author: Isomer X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=752cb13c5e4734f879d061ce27933c0543214ecb 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 --- 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));