_failure_necessary_variable just for _Tycho_

This commit is contained in:
psyc://psyced.org/~lynX 2009-11-08 19:03:25 +01:00
parent 7b3b955117
commit 7bcd5852f4
3 changed files with 30 additions and 23 deletions

View File

@ -744,6 +744,9 @@ _error_illegal_password_size
_error_necessary_registration _error_necessary_registration
|Tut mir Leid, das geht erst nach Registrierung. |Tut mir Leid, das geht erst nach Registrierung.
_failure_necessary_variable
|Unvollständige Anfrage.
_error_necessary_nick_place _error_necessary_nick_place
|Du kannst hier nicht einfach hereinlaufen ohne einen anständigen Spitznamen! |Du kannst hier nicht einfach hereinlaufen ohne einen anständigen Spitznamen!

View File

@ -626,7 +626,10 @@ _failure_filter_strangers
|[_nick] has not enabled messages from strangers. |[_nick] has not enabled messages from strangers.
_failure_necessary_registration _failure_necessary_registration
|[_nick_target] cannot handle friendships yet. |[_nick_target] is no registered user yet.
_failure_necessary_variable
|Your request is incomplete.
_failure_unsuccessful_delivery _failure_unsuccessful_delivery
|Could not establish a circuit to [_host] to deliver a [_method_relay] to [_source]. |Could not establish a circuit to [_host] to deliver a [_method_relay] to [_source].

View File

@ -914,7 +914,7 @@ cmd(a, args, dest, command) {
if (member(places, (t = sizeof(args) < 2 ? place : args[1]))) { if (member(places, (t = sizeof(args) < 2 ? place : args[1]))) {
m_delete(places, t); m_delete(places, t);
} }
// fall thru // fall thru
case "unenter": // and the protocol should follow.. unenter! case "unenter": // and the protocol should follow.. unenter!
case "leave": case "leave":
case "part": case "part":
@ -1001,7 +1001,7 @@ cmd(a, args, dest, command) {
break; break;
case "notice": case "notice":
t2 = "_message_private_annotate"; t2 = "_message_private_annotate";
// fall thru // fall thru
case "msg": case "msg":
case "tell": case "tell":
case "m": case "m":
@ -1020,7 +1020,7 @@ cmd(a, args, dest, command) {
"Usage: /more. See also /tell and /talk."); "Usage: /more. See also /tell and /talk.");
break; break;
} }
// fall thru // fall thru
case "q": case "q":
case "query": case "query":
case "talk": case "talk":
@ -1046,18 +1046,6 @@ cmd(a, args, dest, command) {
return 1; return 1;
} }
break; break;
// experimental new way to log out without logging out.
// may very well not work as planned
case "det":
case "detach":
//availability = AVAILABILITY_OFFLINE;
remove_interactive(ME);
//break;
// used to fall thru to declare myself offline as well..
// now you have to declare yourself offline manually
// no you don't. if availability isn't offline the
// disconnect() handler will clean you out!
// fall thru
#endif #endif
#ifndef _flag_disable_module_friendship #ifndef _flag_disable_module_friendship
case "shout": case "shout":
@ -1068,9 +1056,19 @@ cmd(a, args, dest, command) {
"Usage: /shout <message-to-your-friends>"); "Usage: /shout <message-to-your-friends>");
break; break;
# ifndef _flag_disable_module_presence # ifndef _flag_disable_module_presence
case "presence": // experimental new way to log out without logging out.
showMyPresence(1); // may very well not work as planned
return 1; // detach for psyc clients: _do_presence offline + _unlink
case "det":
case "detach":
//availability = AVAILABILITY_OFFLINE;
remove_interactive(ME);
//break;
// used to fall thru to declare myself offline as well..
// 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
case "offline": case "offline":
announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1)); announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1));
return 1; return 1;
@ -1157,6 +1155,9 @@ cmd(a, args, dest, command) {
// this command is normally accessed as /mynick // this command is normally accessed as /mynick
// as it behaves similarely to /me // as it behaves similarely to /me
return motto(ARGS(1)); return motto(ARGS(1));
case "presence":
showMyPresence(1);
return 1;
# endif /* _flag_disable_module_presence */ # endif /* _flag_disable_module_presence */
case "cancel": case "cancel":
case "can": case "can":
@ -1590,7 +1591,7 @@ case "_message":
tell(vars["_person"], data, 0, vars["_action"], 0); tell(vars["_person"], data, 0, vars["_action"], 0);
return 1; return 1;
} }
// else.. fall thru // else.. fall thru
case "_message_public": case "_message_public":
case "_public": case "_public":
case "_speak": case "_speak":
@ -1770,8 +1771,8 @@ case "_presence":
return 1; return 1;
} }
P1(("got invalid %O: %O, %O\n", mc, vars, data)) P1(("got invalid %O: %O, %O\n", mc, vars, data))
// complain about missing args? w("_failure_necessary_variable");
return 0; return 1;
#endif // _flag_disable_module_presence #endif // _flag_disable_module_presence
case "_list_peers_JSON": case "_list_peers_JSON":
listAcq(PPL_JSON); listAcq(PPL_JSON);
@ -1788,7 +1789,7 @@ case "_unlink":
case "_exit": case "_exit":
// so this is some kind of ugly hack not to be used.. huh? // so this is some kind of ugly hack not to be used.. huh?
announce(AVAILABILITY_OFFLINE); announce(AVAILABILITY_OFFLINE);
// fall thru // fall thru
case "_quit": case "_quit":
// bye(vars["_reason"]); // bye(vars["_reason"]);
quit(); quit();