Merge branch 'develop'

This commit is contained in:
Lance Stout 2013-02-19 01:01:09 -08:00
commit 9a45ebd98b

View file

@ -6,6 +6,7 @@
See the file LICENSE for copying permission. See the file LICENSE for copying permission.
""" """
import uuid
import logging import logging
import hashlib import hashlib
import random import random
@ -98,7 +99,7 @@ class XEP_0078(BasePlugin):
# A resource is required, so create a random one if necessary # A resource is required, so create a random one if necessary
resource = self.xmpp.requested_jid.resource resource = self.xmpp.requested_jid.resource
if not resource: if not resource:
resource = uuid.uuid4() resource = str(uuid.uuid4())
iq['auth']['resource'] = resource iq['auth']['resource'] = resource