Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / motd.c
index 2dc5daaafc497eb11a756ab6b72e3a09b5bfc112..4fe4a56f870d19fee4884624d88fe8f54c5d5173 100644 (file)
@@ -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));