Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-11-24 22:43:48 +0300
committerDenis Fomin <fominde@gmail.com>2010-11-24 22:43:48 +0300
commit8b22558e47c418a48396a9505e2205bc93a1786b (patch)
tree954dbfed5329b3b2cd247b3da0f44a1b9fed11f9 /juick/plugin.py
parentba2c7ffc330100d5e7822c775c086acddb39429b (diff)
juick.do not show avatar if not connected
Diffstat (limited to 'juick/plugin.py')
-rw-r--r--juick/plugin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick/plugin.py b/juick/plugin.py
index 35521a1..545e99a 100644
--- a/juick/plugin.py
+++ b/juick/plugin.py
@@ -322,6 +322,8 @@ class Base(object):
return
# insert avatars
conn = gajim.connections[self.chat_control.account]
+ if not conn.connected:
+ return
id_ = conn.connection.getAnID()
to = 'juick@juick.com'
iq = common.xmpp.Iq('get', to=to)