_request_do_subscribe

This commit is contained in:
psyc://psyced.org/~lynX 2009-11-04 19:17:53 +01:00
parent 5220470091
commit 37a4720711
2 changed files with 16 additions and 0 deletions

View File

@ -1110,6 +1110,7 @@ vamixed startParse(string a) {
restart(); restart();
if (isServer()) greet(); if (isServer()) greet();
} }
// new syntax is so broken, we should not pretend to support it yet FIXME
# if defined(SPYC_PATH) && defined(USE_SPYC) # if defined(SPYC_PATH) && defined(USE_SPYC)
else if (a == "|") { // new S_GLYPH_PACKET_DELIMITER else if (a == "|") { // new S_GLYPH_PACKET_DELIMITER
object o = clone_object(SPYC_PATH "server"); object o = clone_object(SPYC_PATH "server");

View File

@ -1637,6 +1637,21 @@ case "_invite":
return invite(t, vars); return invite(t, vars);
} }
return 0; return 0;
case "_subscribe_permanent":
case "_subscribe_temporary":
case "_subscribe":
if (t = vars["_group"] || vars["_focus"]) {
subscribe(family == "_subscribe_permanent" ?
SUBSCRIBE_PERMANENT : SUBSCRIBE_TEMPORARY, t);
return 1;
}
return 0;
case "_unsubscribe":
if (t = vars["_group"] || vars["_focus"]) {
subscribe(SUBSCRIBE_NOT, t);
return 1;
}
return 0;
case "_remove_register": case "_remove_register":
case "_register_remove": // to go case "_register_remove": // to go
// unregister a user? only if you are trustworthy! // unregister a user? only if you are trustworthy!