From ebab7885c866a128d34fb7dbf93e95dd4decd073 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Mon, 16 Apr 2007 16:11:50 +0000 Subject: [PATCH] - #0002842 reported by Zell, fixed by WolfSage regarding glitch in rehash output glitch --- Changes | 2 ++ src/s_serv.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 5b50a5510..1b807a828 100644 --- a/Changes +++ b/Changes @@ -1576,3 +1576,5 @@ MOTDs - #0003272 reported and fixed by WolfSage (addmotd, addomotd in help.conf) - #0003274 reported by Stealth regarding using actual nick and not given nick in SAPART +- #0002842 reported by Zell, fixed by WolfSage regarding glitch in rehash + output glitch diff --git a/src/s_serv.c b/src/s_serv.c index 047211e25..0790b6375 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -588,7 +588,7 @@ CMD_FUNC(m_rehash) if (parv[1] && (parv[1][0] == '-')) x = HUNTED_ISME; else - x = hunt_server_token(cptr, sptr, MSG_REHASH, TOK_REHASH, "%s", 1, parc, parv); + x = hunt_server_token(cptr, sptr, MSG_REHASH, TOK_REHASH, "%s %s", 1, parc, parv); } else { x = hunt_server_token(cptr, sptr, MSG_REHASH, TOK_REHASH, "%s %s", 1, parc, parv); } @@ -622,7 +622,7 @@ CMD_FUNC(m_rehash) parv[1] = parv[2]; } - if (!BadPtr(parv[1]) && strcmp(parv[1], "-all")) + if (!BadPtr(parv[1]) && strcmp(parv[1], "-all") && stricmp(parv[1], me.name)) { if (!IsAdmin(sptr) && !IsCoAdmin(sptr))