bugfix get the write error message

This commit is contained in:
Yann Leboulanger 2004-06-09 18:48:16 +00:00
parent 525b9bda7e
commit a7e8fb389b
1 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,11 @@ class GajimCore:
self.hub.sendPlugin('UNSUBSCRIBED', self.connexions[con], \
prs.getFrom().getBasic())
elif type == 'error':
errmsg = prs._node.kids[0].getData()
errmsg = ''
for child in prs._node.getChildren():
if child.getName() == 'error':
errmsg = child.getData()
break
self.hub.sendPlugin('NOTIFY', self.connexions[con], \
(prs.getFrom().getBasic(), 'error', errmsg, \
prs.getFrom().getResource(), prio))