#### End of system configuration section. ####
SUBDIRS = doc ircd
-MAKEFILES = Makefile doc/Makefile ircd/Makefile
+IRCD_MAKEFILES = Makefile doc/Makefile ircd/Makefile
all: build
# Some versions of make give a warning when this is empty:
.SUFFIXES: .dummy
-build: ${MAKEFILES}
+build: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Building $$i..."; \
cd $$i; ${MAKE} build; cd ..; \
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
-sub-clean: ${MAKEFILES}
+sub-clean: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Cleaning $$i..."; \
cd $$i; ${MAKE} clean; cd ..;\
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
-sub-distclean: ${MAKEFILES}
+sub-distclean: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Dist-cleaning $$i..."; \
cd $$i; ${MAKE} distclean; cd ..;\
${RM} -f Makefile config.h config.log config.cache config.status \
stamp-h
-maintainer-clean: root-distclean ${MAKEFILES}
+maintainer-clean: root-distclean ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "maintainer-cleaning $$i..."; \
cd $$i; ${MAKE} maintainer-clean; cd ..;\
done
-depend: ${MAKEFILES}
+depend: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Making dependencies in $$i..."; \
cd $$i; ${MAKE} depend; cd ..; \
done
-install: ${MAKEFILES}
+install: ${IRCD_MAKEFILES}
test -d ${prefix} || mkdir ${prefix}
@for i in ${SUBDIRS}; do \
echo "Installing $$i..."; \
cd $$i; ${MAKE} install; cd ..; \
done
-uninstall: ${MAKEFILES}
+uninstall: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Uninstalling $$i..."; \
cd $$i; ${MAKE} uninstall; cd ..; \
*/
int m_quit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
- char* comment;
+ char comment[TOPICLEN];
assert(0 != cptr);
assert(0 != sptr);
assert(cptr == sptr);
return exit_client(cptr, sptr, sptr, "Signed off");
}
}
- comment = cli_name(cptr);
if (parc > 1) {
- comment = parv[parc - 1];
-
- if (0 == strncmp("Local kill", comment, 10) || 0 == strncmp(comment, "Killed", 6))
- comment = cli_name(cptr);
- else if (strlen(comment) > TOPICLEN)
- comment[TOPICLEN] = '\0';
+ strcpy(comment,"Quit: ");
+ strncat(comment,parv[parc-1],sizeof(comment)-strlen("Quit: "));
+ comment[sizeof(comment)] = '\0';
+ }
+ else {
+ strncpy(comment,cli_name(cptr),sizeof(comment));
}
return exit_client(cptr, sptr, sptr, comment);
}