From e79fe64e64f2337f6c36fe6ed3e0192515015774 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Thu, 6 Oct 2011 20:52:22 +0200 Subject: [PATCH] - --- place/log.c | 11 +++++++++++ world/net/http/server.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 place/log.c diff --git a/place/log.c b/place/log.c new file mode 100644 index 0000000..d33ed95 --- /dev/null +++ b/place/log.c @@ -0,0 +1,11 @@ +// This is a place that keeps a log of what's been said. +// it's too simplistic tho - it doesnt handle /me correctly + +#include +#include + +#define CREATE localize(); +#define ON_CONVERSE log_file(MYNICK, "%s\t%s", isotime(ctime(), 1), \ + psyctext(T(mc, "[_data]"), vars, data, source)); + +#include diff --git a/world/net/http/server.c b/world/net/http/server.c index dccfe01..2f5bdb8 100644 --- a/world/net/http/server.c +++ b/world/net/http/server.c @@ -146,7 +146,7 @@ parse_request(input) { } P4(("=== HTTP user requested url: %O\n", url)) if (method == "connect") next_input_to(#'parse_wait); - else if (!prot) body(); // HTTP/0.9 has no headers + else if (!prot) process(); // HTTP/0.9 has no headers else next_input_to(#'parse_header); }