JuickPlugin. add nbxmpp support(used for avatars)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Juick
|
name: Juick
|
||||||
short_name: Juick
|
short_name: Juick
|
||||||
version: 0.9.2
|
version: 0.9.3
|
||||||
description: Clickable Juick links , Juick nicks, preview Juick picturs.
|
description: Clickable Juick links , Juick nicks, preview Juick picturs.
|
||||||
The key combination alt + up in the textbox allow insert the number of last message (comment or topic).
|
The key combination alt + up in the textbox allow insert the number of last message (comment or topic).
|
||||||
authors: Denis Fomin <fominde@gmail.com>
|
authors: Denis Fomin <fominde@gmail.com>
|
||||||
|
|||||||
@@ -17,7 +17,12 @@ from plugins.helpers import log_calls, log
|
|||||||
from plugins.gui import GajimPluginConfigDialog
|
from plugins.gui import GajimPluginConfigDialog
|
||||||
from conversation_textview import TextViewImage
|
from conversation_textview import TextViewImage
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
|
nb_xmpp = False
|
||||||
import common.xmpp
|
import common.xmpp
|
||||||
|
if not dir(common.xmpp):
|
||||||
|
import nbxmpp
|
||||||
|
nb_xmpp = True
|
||||||
|
|
||||||
|
|
||||||
class JuickPlugin(GajimPlugin):
|
class JuickPlugin(GajimPlugin):
|
||||||
@@ -372,7 +377,10 @@ class Base(object):
|
|||||||
# nick not in the db
|
# nick not in the db
|
||||||
id_ = conn.connection.getAnID()
|
id_ = conn.connection.getAnID()
|
||||||
to = 'juick@juick.com'
|
to = 'juick@juick.com'
|
||||||
iq = common.xmpp.Iq('get', to=to)
|
if not nb_xmpp:
|
||||||
|
iq = common.xmpp.Iq('get', to=to)
|
||||||
|
else:
|
||||||
|
iq = nbxmpp.Iq('get', to=to)
|
||||||
a = iq.addChild(name='query',
|
a = iq.addChild(name='query',
|
||||||
namespace='http://juick.com/query#users')
|
namespace='http://juick.com/query#users')
|
||||||
a.addChild(name='user', namespace='http://juick.com/user',
|
a.addChild(name='user', namespace='http://juick.com/user',
|
||||||
|
|||||||
Reference in New Issue
Block a user