fix for /detach

This commit is contained in:
psyc://psyced.org/~lynX 2009-11-27 17:02:39 +01:00
parent 2a6e327d1f
commit f57f84e28d
3 changed files with 6 additions and 3 deletions

View File

@ -1163,7 +1163,7 @@ vamixed startParse(string a) {
else { else {
PT(("PSYC startParse got %O from %O\n", a, query_ip_number())) PT(("PSYC startParse got %O from %O\n", a, query_ip_number()))
croak("_error_syntax_initialization", croak("_error_syntax_initialization",
"The protocol begins with a dot on a line by itself."); "The old protocol begins with a dot on a line by itself.");
// experiencing a loop here, because some implementations // experiencing a loop here, because some implementations
// try immediate reconnect. idea: in most places where we // try immediate reconnect. idea: in most places where we
// QUIT we should put the tcp link on hold instead, and // QUIT we should put the tcp link on hold instead, and

View File

@ -360,7 +360,7 @@ void step() {
step(); step();
} else { } else {
croak("_error_syntax_initialization", croak("_error_syntax_initialization",
"The protocol begins with a pipe and a line feed."); "The new protocol begins with a pipe and a line feed.");
} }
break; break;
default: // uhm... if we ever get here this is the programmers fault default: // uhm... if we ever get here this is the programmers fault

View File

@ -1068,7 +1068,10 @@ cmd(a, args, dest, command) {
// now you have to declare yourself offline manually // now you have to declare yourself offline manually
// no you don't. if availability isn't offline the // no you don't. if availability isn't offline the
// disconnected() handler will clean you out! // disconnected() handler will clean you out!
// fall thru // ok let's do it manually.. see if we get in trouble later.
availability = AVAILABILITY_OFFLINE;
// yes v("availability") is retained.. maybe useful later
return 1;
case "offline": case "offline":
announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1)); announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1));
return 1; return 1;