summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-13 11:27:29 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-13 11:27:29 +0000
commit2ac357a89b7526a4c932d5dd7ee6864ee7aed4a6 (patch)
treed6b6c7246abb4106425c4723a2448018e264dc66
parentd46a30023b262d5ecb38d85c4b4f4fdfd8969dee (diff)
- m_quit.c:ms_quit(): don't default to source_p->name if no quit message is given
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3305 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--modules/core/m_quit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/core/m_quit.c b/modules/core/m_quit.c
index 5e631b7..35e4d17 100644
--- a/modules/core/m_quit.c
+++ b/modules/core/m_quit.c
@@ -63,12 +63,10 @@ static int
ms_quit(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
- char reason[KICKLEN + 1] = { '\0' };
+ char reason[KICKLEN + 1] = "";
if (!EmptyString(parv[1]))
strlcpy(reason, parv[1], sizeof(reason));
- else
- strlcpy(reason, client_p->name, sizeof(reason));
exit_client(source_p, source_p, reason);
return 0;