fix module name

This commit is contained in:
Yann Leboulanger 2012-12-16 23:53:32 +01:00
parent 88e9683ee2
commit cae8faf0ed
3 changed files with 5 additions and 5 deletions

View File

@ -572,7 +572,7 @@ class CommandWindow:
"""
Request the command list. Change stage on delivery
"""
query = nbxmpp.Iq(typ='get', to=xmpp.JID(self.jid),
query = nbxmpp.Iq(typ='get', to=nbxmpp.JID(self.jid),
queryNS=nbxmpp.NS_DISCO_ITEMS)
query.setQuerynode(nbxmpp.NS_COMMANDS)

View File

@ -2656,10 +2656,10 @@ class Connection(CommonConnection, ConnectionHandlers):
"""
message = nbxmpp.Message(to=room)
x = xmpp.DataForm(typ='submit')
x.addChild(node=xmpp.DataField(name='FORM_TYPE',
x = nbxmpp.DataForm(typ='submit')
x.addChild(node=nbxmpp.DataField(name='FORM_TYPE',
value=nbxmpp.NS_MUC + '#request'))
x.addChild(node=xmpp.DataField(name='muc#role', value='participant',
x.addChild(node=nbxmpp.DataField(name='muc#role', value='participant',
typ='text-single'))
message.addChild(node=x)

View File

@ -1722,7 +1722,7 @@ ConnectionJingle, ConnectionIBBytestream):
gajim.jid_is_transport(obj.fjid) or obj.jid in self.jids_for_auto_auth \
or obj.transport_auto_auth:
if self.connection:
p = xmpp.Presence(obj.fjid, 'subscribed')
p = nbxmpp.Presence(obj.fjid, 'subscribed')
p = self.add_sha(p)
self.connection.send(p)
if gajim.jid_is_transport(obj.fjid) or obj.transport_auto_auth: