From 23438196ebdc2a4cb1aac166b7ef4e467fbe6d71 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sat, 2 Sep 2000 07:52:18 +0000 Subject: [PATCH] Fixed a NOTICE bug --- Changes | 1 + src/s_user.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f00d04cdf..ca25354d9 100644 --- a/Changes +++ b/Changes @@ -598,3 +598,4 @@ - ./update now checks when you specify wget if it exists, if not it tries lynx - Cached MOTDs are now dynamically allocated (saves alot of memory) - Made aClient->passwd dynamically allocated (saves 32bytes per user/server) [may need debugging] +- Fixed a NOTICE crash bug, reported by EJ diff --git a/src/s_user.c b/src/s_user.c index 29c250fbd..804743971 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -2319,7 +2319,8 @@ int m_notice(cptr, sptr, parc, parv) return 0; } temp: - return m_message(cptr, sptr, parc, parv, 1); + if (sptr->name[0]) + return m_message(cptr, sptr, parc, parv, 1); } int channelwho = 0;