set error message as status message (a new status like 'error' is maybe needed to set another icon to such contacts)

This commit is contained in:
Yann Leboulanger 2004-03-30 03:49:16 +00:00
parent da549bc118
commit 86d3ac2b3e
1 changed files with 3 additions and 10 deletions

View File

@ -148,17 +148,10 @@ class GajimCore:
prs.getFrom().getBasic())
elif type == 'error':
print "\n\n******** ERROR *******"
#print "From : %s" % prs.getFrom()
#print "To : %s" % prs.getTo()
#print "Status : %s" % prs.getStatus()
#print "Show : %s" % prs.getShow()
#print "X : %s" % prs.getX()
#print "XNode : %s" % prs.getXNode()
#print "XPayload : %s" % prs.getXPayload()
#print "_node : %s" % prs._node.getData()
#print "kids : %s" % prs._node.kids[0].getData()
#print "\n\n"
errmsg = prs._node.kids[0].getData()
self.hub.sendPlugin('NOTIFY', self.connexions[con], \
(prs.getFrom().getBasic(), 'offline', errmsg, \
prs.getFrom().getResource()))
# END presenceCB
def disconnectedCB(self, con):