mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 20:11:00 +00:00
adopt arrow semantics from fippo.. << means outgoing, >> means incoming.
that's the inversion of shell io semantics
This commit is contained in:
parent
673eacd099
commit
921d1c17a5
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user