mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-12-05 00:22:19 +00:00
_error_status_person_connected
This commit is contained in:
parent
ffe58ced2c
commit
6b8e138eb4
@ -692,7 +692,7 @@ _error_status_place_chosen
|
||||
|Du bist bereits in einem Raum.
|
||||
|
||||
_error_status_person_connected
|
||||
|Tut mir Leid, aber %O ist schon da. Wählen Sie bitte einen anderen Namen.
|
||||
|Tut mir Leid, aber [_nick] ist schon da. Wählen Sie bitte einen anderen Namen.
|
||||
|
||||
_error_status_person_display_none
|
||||
|Das geht nicht. Du musst zuerst aufhören [_nick_target] zu ignorieren.
|
||||
|
@ -635,7 +635,7 @@ _error_rejected_query_location
|
||||
|You're currently not permitted to request the location.
|
||||
|
||||
_error_status_person_connected
|
||||
|This person is already connected.
|
||||
|Sorry. [_nick] is already connected. Please pick a different name.
|
||||
|
||||
_failure_filter_strangers
|
||||
|[_nick] has not enabled messages from strangers.
|
||||
|
@ -43,9 +43,7 @@ connect(nick, pw) {
|
||||
return;
|
||||
}
|
||||
if (user->online() && user->vQuery("ip") != query_ip_number()) {
|
||||
w("_error_status_person_connected",
|
||||
"Sorry. [_nick] is already here.\
|
||||
Please pick a different name.",
|
||||
w("_error_status_person_connected", 0,
|
||||
([ "_nick": nick ]) );
|
||||
return;
|
||||
}
|
||||
|
@ -874,6 +874,10 @@ varargs mixed sendmsg(mixed target, string mc, mixed data, vamapping vars,
|
||||
register_target(target, o);
|
||||
o -> msg(source, mc, data, vars);
|
||||
return 3;
|
||||
#endif
|
||||
#ifdef RTMP_PATH
|
||||
case "rtmp":
|
||||
return 0; // unreachable
|
||||
#endif
|
||||
}
|
||||
if (schemes[u[UScheme]])
|
||||
|
@ -1037,6 +1037,7 @@ case "_request_location":
|
||||
return 0;
|
||||
case "_request_link":
|
||||
case "_set_password":
|
||||
PT(("_request_link for %O\n", ME))
|
||||
// TODO: shouldn't we use some kind of observer pattern on the
|
||||
// current_interactive to become aware of disconnects?
|
||||
// at least if the current interactive is not a server2server
|
||||
@ -1067,7 +1068,8 @@ case "_set_password":
|
||||
// we are a newbie. reject the
|
||||
// kick-out request.
|
||||
sendmsg(source,
|
||||
"_error_status_person_connected");
|
||||
"_error_status_person_connected", 0,
|
||||
([ "_nick": MYNICK ]));
|
||||
return 0;
|
||||
}
|
||||
// we are a legitimate new client.
|
||||
|
@ -164,8 +164,7 @@ authChecked(int result, ni, try, elm) {
|
||||
&& user->vQuery("ip") != query_ip_number()
|
||||
#endif
|
||||
) {
|
||||
pr("_error_status_person_connected",
|
||||
"Sorry. %O is already connected.\n", nick);
|
||||
w("_error_status_person_connected", 0, ([ "_nick": nick ]) );
|
||||
QUIT
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user