From 2ac357a89b7526a4c932d5dd7ee6864ee7aed4a6 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 13 Apr 2014 11:27:29 +0000 Subject: - 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 --- modules/core/m_quit.c | 4 +--- 1 file changed, 1 insertion(+), 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; -- cgit