Log message:
* Fixed the build system, "MAKEFILES" is not a general purpose variable in a
makefile -- it implicitly includes the other makefiles. And it appears to
have shown up some bug in Make too. Funky!
* Added "Quit: " prefixes to quit messages.
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@595
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2002-01-08 Perry Lorier <isomer@coders.net>
+ * Fixed the build system -- MAKEFILES is *not* a variable you can
+ just use in a makefile :)
+ * Added "Quit: " prefix to quit messages.
+
2001-10-14 Perry Lorier <isomer@coders.net>
* Minor fixes to the below
2001-10-14 Perry Lorier <isomer@coders.net>
* Minor fixes to the below
#### End of system configuration section. ####
SUBDIRS = doc ircd
#### End of system configuration section. ####
SUBDIRS = doc ircd
-MAKEFILES = Makefile doc/Makefile ircd/Makefile
+IRCD_MAKEFILES = Makefile doc/Makefile ircd/Makefile
# Some versions of make give a warning when this is empty:
.SUFFIXES: .dummy
# Some versions of make give a warning when this is empty:
.SUFFIXES: .dummy
+build: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Building $$i..."; \
cd $$i; ${MAKE} build; cd ..; \
@for i in ${SUBDIRS}; do \
echo "Building $$i..."; \
cd $$i; ${MAKE} build; cd ..; \
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
+sub-clean: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Cleaning $$i..."; \
cd $$i; ${MAKE} clean; cd ..;\
@for i in ${SUBDIRS}; do \
echo "Cleaning $$i..."; \
cd $$i; ${MAKE} clean; cd ..;\
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
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 ..;\
@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
${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
@for i in ${SUBDIRS}; do \
echo "maintainer-cleaning $$i..."; \
cd $$i; ${MAKE} maintainer-clean; cd ..;\
done
+depend: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Making dependencies in $$i..."; \
cd $$i; ${MAKE} depend; cd ..; \
done
@for i in ${SUBDIRS}; do \
echo "Making dependencies in $$i..."; \
cd $$i; ${MAKE} depend; cd ..; \
done
+install: ${IRCD_MAKEFILES}
test -d ${prefix} || mkdir ${prefix}
@for i in ${SUBDIRS}; do \
echo "Installing $$i..."; \
cd $$i; ${MAKE} install; cd ..; \
done
test -d ${prefix} || mkdir ${prefix}
@for i in ${SUBDIRS}; do \
echo "Installing $$i..."; \
cd $$i; ${MAKE} install; cd ..; \
done
+uninstall: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Uninstalling $$i..."; \
cd $$i; ${MAKE} uninstall; cd ..; \
@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[])
{
*/
int m_quit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
+ char comment[TOPICLEN];
assert(0 != cptr);
assert(0 != sptr);
assert(cptr == sptr);
assert(0 != cptr);
assert(0 != sptr);
assert(cptr == sptr);
return exit_client(cptr, sptr, sptr, "Signed off");
}
}
return exit_client(cptr, sptr, sptr, "Signed off");
}
}
- comment = cli_name(cptr);
- 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);
}
}
return exit_client(cptr, sptr, sptr, comment);
}