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:
parent
da549bc118
commit
86d3ac2b3e
1 changed files with 3 additions and 10 deletions
13
core/core.py
13
core/core.py
|
@ -148,17 +148,10 @@ class GajimCore:
|
||||||
prs.getFrom().getBasic())
|
prs.getFrom().getBasic())
|
||||||
elif type == 'error':
|
elif type == 'error':
|
||||||
print "\n\n******** 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()
|
errmsg = prs._node.kids[0].getData()
|
||||||
|
self.hub.sendPlugin('NOTIFY', self.connexions[con], \
|
||||||
|
(prs.getFrom().getBasic(), 'offline', errmsg, \
|
||||||
|
prs.getFrom().getResource()))
|
||||||
# END presenceCB
|
# END presenceCB
|
||||||
|
|
||||||
def disconnectedCB(self, con):
|
def disconnectedCB(self, con):
|
||||||
|
|
Loading…
Add table
Reference in a new issue