changeset 68a19c1bbb22 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=68a19c1bbb22 description: prevent some tracebacks
diffstat:
src/common/connection.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 129d3cce62cb -r 68a19c1bbb22 src/common/connection.py --- a/src/common/connection.py Wed Jul 02 18:13:01 2014 +0200 +++ b/src/common/connection.py Thu Jul 10 20:30:20 2014 +0200 @@ -2874,6 +2874,8 @@ """ Send invitation """ + if not gajim.account_is_connected(self.name): + return contact = gajim.contacts.get_contact_from_full_jid(self.name, to) if contact and contact.supports(nbxmpp.NS_CONFERENCE): # send direct invite @@ -2900,6 +2902,8 @@ """ decline a groupchat invitation """ + if not gajim.account_is_connected(self.name): + return message=nbxmpp.Message(to=room) c = message.addChild(name='x', namespace=nbxmpp.NS_MUC_USER) c = c.addChild(name='decline', attrs={'to': to}) @@ -2911,6 +2915,8 @@ """ Request voice in a moderated room """ + if not gajim.account_is_connected(self.name): + return message = nbxmpp.Message(to=room)
x = nbxmpp.DataForm(typ='submit')