From 7bcd5852f42aa3ed2ca6170da82ce4951cce99c5 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 8 Nov 2009 19:03:25 +0100 Subject: [PATCH] _failure_necessary_variable just for _Tycho_ --- world/default/de/plain.textdb | 3 +++ world/default/en/plain.textdb | 5 +++- world/net/usercmd.i | 45 ++++++++++++++++++----------------- 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/world/default/de/plain.textdb b/world/default/de/plain.textdb index 937adb6..c0f94ec 100644 --- a/world/default/de/plain.textdb +++ b/world/default/de/plain.textdb @@ -744,6 +744,9 @@ _error_illegal_password_size _error_necessary_registration |Tut mir Leid, das geht erst nach Registrierung. +_failure_necessary_variable +|Unvollständige Anfrage. + _error_necessary_nick_place |Du kannst hier nicht einfach hereinlaufen ohne einen anständigen Spitznamen! diff --git a/world/default/en/plain.textdb b/world/default/en/plain.textdb index c326565..4527c01 100644 --- a/world/default/en/plain.textdb +++ b/world/default/en/plain.textdb @@ -626,7 +626,10 @@ _failure_filter_strangers |[_nick] has not enabled messages from strangers. _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 |Could not establish a circuit to [_host] to deliver a [_method_relay] to [_source]. diff --git a/world/net/usercmd.i b/world/net/usercmd.i index d133617..a225214 100644 --- a/world/net/usercmd.i +++ b/world/net/usercmd.i @@ -914,7 +914,7 @@ cmd(a, args, dest, command) { if (member(places, (t = sizeof(args) < 2 ? place : args[1]))) { m_delete(places, t); } - // fall thru + // fall thru case "unenter": // and the protocol should follow.. unenter! case "leave": case "part": @@ -1001,7 +1001,7 @@ cmd(a, args, dest, command) { break; case "notice": t2 = "_message_private_annotate"; - // fall thru + // fall thru case "msg": case "tell": case "m": @@ -1020,7 +1020,7 @@ cmd(a, args, dest, command) { "Usage: /more. See also /tell and /talk."); break; } - // fall thru + // fall thru case "q": case "query": case "talk": @@ -1046,18 +1046,6 @@ cmd(a, args, dest, command) { return 1; } 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 #ifndef _flag_disable_module_friendship case "shout": @@ -1068,9 +1056,19 @@ cmd(a, args, dest, command) { "Usage: /shout "); break; # ifndef _flag_disable_module_presence - case "presence": - showMyPresence(1); - return 1; + // experimental new way to log out without logging out. + // may very well not work as planned + // 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": announce(AVAILABILITY_OFFLINE, 1, 1, ARGS(1)); return 1; @@ -1157,6 +1155,9 @@ cmd(a, args, dest, command) { // this command is normally accessed as /mynick // as it behaves similarely to /me return motto(ARGS(1)); + case "presence": + showMyPresence(1); + return 1; # endif /* _flag_disable_module_presence */ case "cancel": case "can": @@ -1590,7 +1591,7 @@ case "_message": tell(vars["_person"], data, 0, vars["_action"], 0); return 1; } - // else.. fall thru + // else.. fall thru case "_message_public": case "_public": case "_speak": @@ -1770,8 +1771,8 @@ case "_presence": return 1; } P1(("got invalid %O: %O, %O\n", mc, vars, data)) - // complain about missing args? - return 0; + w("_failure_necessary_variable"); + return 1; #endif // _flag_disable_module_presence case "_list_peers_JSON": listAcq(PPL_JSON); @@ -1788,7 +1789,7 @@ case "_unlink": case "_exit": // so this is some kind of ugly hack not to be used.. huh? announce(AVAILABILITY_OFFLINE); - // fall thru + // fall thru case "_quit": // bye(vars["_reason"]); quit();