mod_dialback: Skip an unnecessary nameprep.
[prosody.git] / plugins / mod_dialback.lua
index 2299c0dc20f9b1555032d975c79574dbf0926342..67be15e33bda6ecb7ed17a7758ed7b6fbcd0ea55 100644 (file)
@@ -84,7 +84,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
                        origin.from_host = from;
                end
                if not origin.to_host then
-                       origin.to_host = nameprep(attr.to);
+                       origin.to_host = to;
                end
 
                origin.log("debug", "asking %s if key %s belongs to them", from, stanza[1]);