Changeset 6409

Show
Ignore:
Timestamp:
05/31/06 23:12:03 (3 years ago)
Author:
dkirov
Message:

send our real show, when we connect to a
transport

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection.py

    r6323 r6409  
    873873                if not self.connection: 
    874874                        return 
    875                 p = common.xmpp.Presence(to = agent, typ = ptype) 
     875                show = helpers.get_xmpp_show(STATUS_LIST[self.connected]) 
     876                p = common.xmpp.Presence(to = agent, typ = ptype, show = show) 
    876877                p = self.add_sha(p, ptype != 'unavailable') 
    877878                self.connection.send(p)