diff --git a/world/net/person.c b/world/net/person.c index 76b8f60..2b80bc0 100644 --- a/world/net/person.c +++ b/world/net/person.c @@ -1380,19 +1380,22 @@ case "_request_execute": } else { // see if it is a local object object o = psyc_object(t); - - // object one of our places? - if (o && places[o]) { - place = o; - vSet("place", o->qName()); - PT(("REQ-EX object %O\n", o)) + if (o) { + // object one of our places? + if (places[o]) { + place = o; + vSet("place", o->qName()); + PT(("REQ-EX o'place %O\n", o)) + } else { + PT(("REQ-EX object %O not found in %s's places %O\n", o, MYNICK, places)) + } } else unless (t2) { // must be a person then // ME->parsecmd(data, t); - PT(("REQ-EX person %O\n", t)) - parsecmd(data, t); + PT(("REQ-EX person %O vs %O\n", t, o)) // should be able to put o||t // here.. TODO + parsecmd(data, t); return 0; } } diff --git a/world/net/psyc/edit.i b/world/net/psyc/edit.i index da11828..62c9bc5 100644 --- a/world/net/psyc/edit.i +++ b/world/net/psyc/edit.i @@ -177,8 +177,8 @@ static varargs string psyc_render(mixed source, string mc, mixed data, data = data? to_string(data): ""; #endif } - else if (data == S_GLYPH_PACKET_DELIMITER || - (data[0] == C_GLYPH_PACKET_DELIMITER && data[1] == '\n') + else if (data == S_GLYPH_PACKET_DELIMITER || (strlen(data) > 1 && + data[0] == C_GLYPH_PACKET_DELIMITER && data[1] == '\n') || strstr(data, "\n" S_GLYPH_PACKET_DELIMITER "\n") != -1) { // this check shouldn't be necessary here: we should check what // people are typing in usercmd diff --git a/world/net/psyc/parse.i b/world/net/psyc/parse.i index 631b0e8..9a9e1a5 100644 --- a/world/net/psyc/parse.i +++ b/world/net/psyc/parse.i @@ -414,7 +414,8 @@ vamixed parse(string a) { #ifndef __PIKE__ if (peerip && pongtime + 120 < time()) { if (same_host(SERVER_HOST, peerip)) { - P1(("why am i talking psyc to myself?\n")) + P1(("Another PSYC node on my IP? Or am I talking to myself? %O\n", ME)) + // not ponging to ping then... } else { #ifdef PSYC_TCP P2(("%O sending TCP PONG to %O=%O\n", diff --git a/world/net/user.c b/world/net/user.c index 0566f19..9f5a420 100644 --- a/world/net/user.c +++ b/world/net/user.c @@ -615,6 +615,9 @@ case "_jabber_iq_set": case "_jabber": P1(("%O got %O", ME, mc)) break; +case "_notice_composing_media": + if (v("scheme") != "psyc") return 1; + break; case "_message_video": case "_message_audio": // not being displayed to users other than psyc clients