mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
handle object not found in places
This commit is contained in:
parent
a32a31794e
commit
556e2be6a9
4 changed files with 18 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue