Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 4931:7a4f00168260
mod_dialback: Skip an unnecessary nameprep.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 15 Jun 2012 02:53:57 +0500 |
parent | 4851:8e3992ae7bf5 |
child | 4993:5243b74a4cbb |
comparison
equal
deleted
inserted
replaced
4930:42ac50c0382e | 4931:7a4f00168260 |
---|---|
82 -- on streams. We fill in the session's to/from here instead. | 82 -- on streams. We fill in the session's to/from here instead. |
83 if not origin.from_host then | 83 if not origin.from_host then |
84 origin.from_host = from; | 84 origin.from_host = from; |
85 end | 85 end |
86 if not origin.to_host then | 86 if not origin.to_host then |
87 origin.to_host = nameprep(attr.to); | 87 origin.to_host = to; |
88 end | 88 end |
89 | 89 |
90 origin.log("debug", "asking %s if key %s belongs to them", from, stanza[1]); | 90 origin.log("debug", "asking %s if key %s belongs to them", from, stanza[1]); |
91 module:fire_event("route/remote", { | 91 module:fire_event("route/remote", { |
92 from_host = to, to_host = from; | 92 from_host = to, to_host = from; |