mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
should we do NAMEPREP automatically?
This commit is contained in:
parent
61ef5ce041
commit
9f9bdc4e20
8 changed files with 18 additions and 12 deletions
|
@ -298,6 +298,7 @@ jabberMsg(XMLNode node) {
|
|||
sendmsg(origin,
|
||||
"_dialback_request_verify", 0,
|
||||
([ "_INTERNAL_target_jabber" : source,
|
||||
// we shouldnt have to NAMEPREP a static string.. FIXME
|
||||
"_INTERNAL_source_jabber" : NAMEPREP(_host_XMPP),
|
||||
"_dialback_key" : node[Cdata],
|
||||
"_tag" : streamid
|
||||
|
|
|
@ -86,6 +86,7 @@ virtual inherit JABBER_PATH "common";
|
|||
|
||||
// net/jabber is not ready for regular is_localhost
|
||||
#define is_localhost(a) (lower_case(a)) == _host_XMPP
|
||||
// but.. what about NAMEPREP here?
|
||||
|
||||
|
||||
#define JABSOURCE "_INTERNAL_source_jabber"
|
||||
|
|
|
@ -277,6 +277,7 @@ logon() {
|
|||
#endif
|
||||
nodeHandler = #'jabberMsg;
|
||||
set_prompt("");
|
||||
// we shouldn't have to NAMEPREP our SERVER_HOST for each new user.. FIXME
|
||||
myjid = NODEPREP(MYLOWERNICK) +"@" + NAMEPREP(SERVER_HOST);
|
||||
myjidresource = myjid +"/"+ RESOURCEPREP(resource);
|
||||
P2(("%O ready to rumble (%O)\n", myjidresource, ME))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue