mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-10 04:21:02 +00:00
handle object not found in places
This commit is contained in:
parent
a32a31794e
commit
556e2be6a9
@ -1376,19 +1376,22 @@ case "_request_execute":
|
|||||||
} else {
|
} else {
|
||||||
// see if it is a local object
|
// see if it is a local object
|
||||||
object o = psyc_object(t);
|
object o = psyc_object(t);
|
||||||
|
if (o) {
|
||||||
// object one of our places?
|
// object one of our places?
|
||||||
if (o && places[o]) {
|
if (places[o]) {
|
||||||
place = o;
|
place = o;
|
||||||
vSet("place", o->qName());
|
vSet("place", o->qName());
|
||||||
|
PT(("REQ-EX o'place %O\n", o))
|
||||||
|
} else {
|
||||||
PT(("REQ-EX object %O\n", o))
|
PT(("REQ-EX object %O\n", o))
|
||||||
|
}
|
||||||
} else unless (t2) {
|
} else unless (t2) {
|
||||||
// must be a person then
|
// must be a person then
|
||||||
// ME->parsecmd(data, t);
|
// ME->parsecmd(data, t);
|
||||||
PT(("REQ-EX person %O\n", t))
|
PT(("REQ-EX person %O vs %O\n", t, o))
|
||||||
parsecmd(data, t);
|
|
||||||
// should be able to put o||t
|
// should be able to put o||t
|
||||||
// here.. TODO
|
// here.. TODO
|
||||||
|
parsecmd(data, t);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,8 +177,8 @@ static varargs string psyc_render(mixed source, string mc, mixed data,
|
|||||||
data = data? to_string(data): "";
|
data = data? to_string(data): "";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (data == S_GLYPH_PACKET_DELIMITER ||
|
else if (data == S_GLYPH_PACKET_DELIMITER || (strlen(data) > 1 &&
|
||||||
(data[0] == C_GLYPH_PACKET_DELIMITER && data[1] == '\n')
|
data[0] == C_GLYPH_PACKET_DELIMITER && data[1] == '\n')
|
||||||
|| strstr(data, "\n" S_GLYPH_PACKET_DELIMITER "\n") != -1) {
|
|| strstr(data, "\n" S_GLYPH_PACKET_DELIMITER "\n") != -1) {
|
||||||
// this check shouldn't be necessary here: we should check what
|
// this check shouldn't be necessary here: we should check what
|
||||||
// people are typing in usercmd
|
// people are typing in usercmd
|
||||||
|
@ -414,7 +414,8 @@ vamixed parse(string a) {
|
|||||||
#ifndef __PIKE__
|
#ifndef __PIKE__
|
||||||
if (peerip && pongtime + 120 < time()) {
|
if (peerip && pongtime + 120 < time()) {
|
||||||
if (same_host(SERVER_HOST, peerip)) {
|
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 {
|
} else {
|
||||||
#ifdef PSYC_TCP
|
#ifdef PSYC_TCP
|
||||||
P2(("%O sending TCP PONG to %O=%O\n",
|
P2(("%O sending TCP PONG to %O=%O\n",
|
||||||
|
@ -615,6 +615,9 @@ case "_jabber_iq_set":
|
|||||||
case "_jabber":
|
case "_jabber":
|
||||||
P1(("%O got %O", ME, mc))
|
P1(("%O got %O", ME, mc))
|
||||||
break;
|
break;
|
||||||
|
case "_notice_composing_media":
|
||||||
|
if (v("scheme") != "psyc") return 1;
|
||||||
|
break;
|
||||||
case "_message_video":
|
case "_message_video":
|
||||||
case "_message_audio":
|
case "_message_audio":
|
||||||
// not being displayed to users other than psyc clients
|
// not being displayed to users other than psyc clients
|
||||||
|
Loading…
Reference in New Issue
Block a user