mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
route local xmpp: uniforms (thx indigo6)
This commit is contained in:
parent
7c9a7e82dd
commit
0050ebd46b
@ -1353,7 +1353,7 @@ _notice_link_service
|
|||||||
|
|
||||||
_notice_link
|
_notice_link
|
||||||
|[_location] linked to [_identification].
|
|[_location] linked to [_identification].
|
||||||
|You are now connected to this big marshmellow in the sky.
|
|## You are now connected to this big marshmellow in the sky.
|
||||||
|
|
||||||
_notice_unlink_exit
|
_notice_unlink_exit
|
||||||
|I wish you good sleep or a fun night-out.
|
|I wish you good sleep or a fun night-out.
|
||||||
|
@ -812,10 +812,23 @@ varargs mixed sendmsg(mixed target, string mc, mixed data, vamapping vars,
|
|||||||
// fall thru
|
// fall thru
|
||||||
case "xmpp":
|
case "xmpp":
|
||||||
#ifdef SWITCH2PSYC
|
#ifdef SWITCH2PSYC
|
||||||
|
// maybe we should treat all of this just as if
|
||||||
|
// no scheme was given (jid treatment below)
|
||||||
P4(("LOOKing for %O in %O\n",
|
P4(("LOOKing for %O in %O\n",
|
||||||
"psyc://"+u[UHost]+"/", targets))
|
"psyc://"+u[UHost]+"/", targets))
|
||||||
tmp = targets["psyc://"+u[UHost]+"/"];
|
tmp = targets["psyc://"+u[UHost]+"/"];
|
||||||
if (tmp) { // && interactive(tmp)) {
|
if (tmp) {
|
||||||
|
// are we talking to our own net/root?
|
||||||
|
// in the past we used interactive() here
|
||||||
|
unless (clonep(tmp)) {
|
||||||
|
tmp = summon_person(u[UNick]);
|
||||||
|
unless (tmp) {
|
||||||
|
// doesn't have to be an error.. use jid treatment below?
|
||||||
|
sendmsg(source, "_failure_unavailable_route_place_XMPP",
|
||||||
|
"Sorry, you can't talk to a local chatroom via XMPP uniform.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
PT(("SWITCH2PSYC delivery %O for %O (%s)\n", tmp, target,
|
PT(("SWITCH2PSYC delivery %O for %O (%s)\n", tmp, target,
|
||||||
mc || "0"))
|
mc || "0"))
|
||||||
// we should very probably generate a redirect here instead! TODO
|
// we should very probably generate a redirect here instead! TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user