From 921d1c17a582ed52f4b4ae1f80b04eef42378c6c Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Wed, 25 Feb 2009 15:12:44 +0100 Subject: [PATCH] adopt arrow semantics from fippo.. << means outgoing, >> means incoming. that's the inversion of shell io semantics --- world/net/irc/common.c | 4 ++-- world/net/psyc/circuit.c | 8 ++++---- world/net/psyc/parse.i | 4 ++-- world/net/spyc/circuit.c | 2 +- world/net/spyc/parse.c | 2 +- world/net/spyc/server.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/world/net/irc/common.c b/world/net/irc/common.c index feeceee..98498f9 100644 --- a/world/net/irc/common.c +++ b/world/net/irc/common.c @@ -22,7 +22,7 @@ parse(a) { string t, from, cmd, args, text; #ifdef _flag_log_sockets_IRC - log_file("RAW_IRC", "%d %O\t<< %s\n", time(), ME, a); + log_file("RAW_IRC", "%d %O\t» %s\n", time(), ME, a); #endif IRCD( D("IRC< '"+a+"'\n"); ) @@ -287,7 +287,7 @@ emit(string output) { // misteries of virtual inheritance.. why doesnt this get called // from gatebot? we need to get this working for 512-split!! #ifdef _flag_log_sockets_IRC -# define EMIT(OUT) (log_file("RAW_IRC", "%d %O\t>> %s", time(), ME, OUT), ::emit(OUT)) +# define EMIT(OUT) (log_file("RAW_IRC", "%d %O\t« %s", time(), ME, OUT), ::emit(OUT)) # else # define EMIT ::emit #endif diff --git a/world/net/psyc/circuit.c b/world/net/psyc/circuit.c index 88dcec1..25af511 100644 --- a/world/net/psyc/circuit.c +++ b/world/net/psyc/circuit.c @@ -189,7 +189,7 @@ _status_circuit\n\ Available protocols: [_available_protocols].\n" S_GLYPH_PACKET_DELIMITER "\n"); #endif // !FORK #ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "» %O greeted.\n", ME); + log_file("RAW_PSYC", "« %O greeted.\n", ME); #endif return 1; } @@ -477,7 +477,7 @@ varargs int msg(string source, string mc, string data, # endif #endif # ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "» %O\n%s\n", ME, buf); + log_file("RAW_PSYC", "« %O\n%s\n", ME, buf); # endif //PT(("» %O\t%s\n", ME, buf)) return emit(buf); @@ -504,14 +504,14 @@ varargs int msg(string source, string mc, string data, else buf = make_psyc(mc, data, vars); #ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "» %O\n%s\n", ME, buf); + log_file("RAW_PSYC", "« %O\n%s\n", ME, buf); #endif return emit(make_mmp(buf, vars, ME)); } int send(string data, mapping vars) { #ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "» %O send(%O)\n", ME, data); + log_file("RAW_PSYC", "« %O send(%O)\n", ME, data); #endif return emit(make_mmp(data, vars, ME)); } diff --git a/world/net/psyc/parse.i b/world/net/psyc/parse.i index 9ad6df0..fe0642c 100644 --- a/world/net/psyc/parse.i +++ b/world/net/psyc/parse.i @@ -279,7 +279,7 @@ vamixed parse(string a) { mixed vvalue; #ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "%O «\t%s\n", ME, a); + log_file("RAW_PSYC", "» %O\t%s\n", ME, a); #endif // P3(("CVARS (%O):\n %O, %O\n", a, query_ip_number(ME), ME)) D3( if (a && strlen(a) > 2) D(S("pp:parse %O\n", a)); ) @@ -572,7 +572,7 @@ private repatch(string t) { vamixed getdata(string a) { #ifdef _flag_log_sockets_PSYC - log_file("RAW_PSYC", "%O «\t%s\n", ME, a); + log_file("RAW_PSYC", "» %O\t%s\n", ME, a); #endif if (a != ".") { #ifdef SYSTEM_SECRET diff --git a/world/net/spyc/circuit.c b/world/net/spyc/circuit.c index 3f46f5f..48966ce 100644 --- a/world/net/spyc/circuit.c +++ b/world/net/spyc/circuit.c @@ -293,7 +293,7 @@ varargs int msg(string source, string mc, string data, unless(vars) vars = ([ ]); buf = psyc_render(source, mc, data, vars, showingLog, target); #ifdef _flag_log_sockets_SPYC - log_file("RAW_SPYC", "» %O\n%s\n", ME, buf); + log_file("RAW_SPYC", "« %O\n%s\n", ME, buf); #endif return emit(buf); } diff --git a/world/net/spyc/parse.c b/world/net/spyc/parse.c index 17d2507..d33422f 100644 --- a/world/net/spyc/parse.c +++ b/world/net/spyc/parse.c @@ -64,7 +64,7 @@ void resume_parse() { // input data to the buffer void feed(string data) { # ifdef _flag_log_sockets_SPYC - log_file("RAW_SPYC", "« %O\n%s\n", ME, data); + log_file("RAW_SPYC", "» %O\n%s\n", ME, data); # endif buffer += data; diff --git a/world/net/spyc/server.c b/world/net/spyc/server.c index 4141f8b..05bbb4a 100644 --- a/world/net/spyc/server.c +++ b/world/net/spyc/server.c @@ -77,7 +77,7 @@ _notice_circuit_established\n" S_GLYPH_PACKET_DELIMITER "\n"); \n\ _status_circuit\n" S_GLYPH_PACKET_DELIMITER "\n"); #ifdef _flag_log_sockets_SPYC - log_file("RAW_SPYC", "» %O greeted.\n", ME); + log_file("RAW_SPYC", "« %O greeted.\n", ME); #endif }