mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
-
This commit is contained in:
parent
266cf1f479
commit
e79fe64e64
2 changed files with 12 additions and 1 deletions
11
place/log.c
Normal file
11
place/log.c
Normal file
|
@ -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 <net.h>
|
||||
#include <text.h>
|
||||
|
||||
#define CREATE localize();
|
||||
#define ON_CONVERSE log_file(MYNICK, "%s\t%s", isotime(ctime(), 1), \
|
||||
psyctext(T(mc, "[_data]"), vars, data, source));
|
||||
|
||||
#include <place.gen>
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue