1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

- Changed m_quit.c slightly, removed a redundant strlen, made prefix-quit of

"no" not use one at all, since this is in example.conf and is sensicle..
This commit is contained in:
ejb
2002-06-17 03:42:25 +00:00
parent 145d3dfb7e
commit 6466d1ed3f
2 changed files with 9 additions and 3 deletions
+3
View File
@@ -1338,3 +1338,6 @@ seen. gmtime warning still there
- Documented the new allow::options in doc/conf.doc
- [nighthawk 2002-06-17] Rewrote m_who.c from scratch. It's slightly different,
help.conf explains exactly how.
- [nighthawk 2002-06-17] Changed m_quit.c slightly, removed a redundant strlen,
made prefix-quit of "no" not use one at all, since this
is in example.conf and is sensicle..
+6 -3
View File
@@ -125,8 +125,11 @@ DLLFUNC int m_quit(aClient *cptr, aClient *sptr, int parc, char *parv[])
if (!IsServer(cptr))
{
ircsprintf(comment, "%s ",
BadPtr(prefix_quit) ? "Quit:" : prefix_quit);
char *s = comment;
if (strcmp(prefix_quit, "no"))
s = ircsprintf(comment, "%s ",
BadPtr(prefix_quit) ? "Quit:" : prefix_quit);
#ifdef CENSOR_QUIT
ocomment = (char *)stripbadwords_channel(ocomment);
@@ -134,7 +137,7 @@ DLLFUNC int m_quit(aClient *cptr, aClient *sptr, int parc, char *parv[])
if (!IsAnOper(sptr) && ANTI_SPAM_QUIT_MSG_TIME)
if (sptr->firsttime+ANTI_SPAM_QUIT_MSG_TIME > TStime())
ocomment = parv[0];
strncpy(comment + strlen(comment), ocomment, TOPICLEN - 7);
strncpy(s, ocomment, TOPICLEN - (s - comment));
comment[TOPICLEN] = '\0';
return exit_client(cptr, sptr, sptr, comment);
}