1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

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 {
PT(("PSYC startParse got %O from %O\n", a, query_ip_number()))
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
// try immediate reconnect. idea: in most places where we
// QUIT we should put the tcp link on hold instead, and

View file

@ -360,7 +360,7 @@ void step() {
step();
} else {
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;
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
// no you don't. if availability isn't offline the
// 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":
announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1));
return 1;