# Licensed for distribution under the GPL version 2, check COPYING for details
import utils
-from tlib.xmlw import Element
+from tlib.xmlw import Element, jid
from twisted.internet.defer import Deferred
from twisted.internet import reactor
from debug import LogEvent, INFO, WARN, ERROR
iqType = el.getAttribute("type")
ulang = utils.getLang(el)
try: # Stringprep
- froj = utils.jid(fro)
- to = utils.jid(to).full()
+ froj = jid.intern(fro)
+ to = jid.intern(to).full()
except Exception, e:
LogEvent(WARN, "", "Dropping IQ because of stringprep error")