Commit 39220685 authored by valtron's avatar valtron

ns: get pop_id from uux

parent b57b4e25
......@@ -232,10 +232,19 @@ def _m_png(sess):
@_handlers
def _m_uux(sess, trid, data):
elm = parse_xml(data.decode('utf-8'))
sess.state.backend.me_update(sess, {
'message': str(elm.find('PSM')),
'media': str(elm.find('CurrentMedia')),
})
psm = elm.find('PSM')
cm = elm.find('CurrentMedia')
if psm or cm:
sess.state.backend.me_update(sess, {
'message': str(elm.find('PSM')),
'media': str(elm.find('CurrentMedia')),
})
mg = elm.find('MachineGuid')
if mg:
sess.state.pop_id = str(mg)[1:-1]
sess.send_reply('UUX', trid, 0)
@_handlers
......
......@@ -176,6 +176,7 @@ class MSNP_NS_SessState(MSNP_SessState):
self.usr_email = None
self.syn_ser = None
self.iln_sent = False
self.pop_id = None
def get_sb_extra_data(self):
return { 'dialect': self.dialect, 'msn_capabilities': self.front_specific.get('msn_capabilities') or 0 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment