Commit c0fbb282 authored by valtron's avatar valtron

fix: msn capabilities not being passed to SB

parent cd572d75
......@@ -442,7 +442,9 @@ def _m_xfr(sess, trid, dest):
sess.send_reply(Err.InvalidParameter, trid)
return
dialect = sess.state.dialect
token = sess.state.backend.sb_token_create(sess, extra_data = { 'dialect': dialect })
token = sess.state.backend.sb_token_create(sess, extra_data = {
'dialect': dialect, 'msn_capabilities': sess.state.front_specific.get('msn_capabilities') or 0,
})
extra = ()
if dialect >= 13:
extra = ('U', 'messenger.msn.com')
......
......@@ -17,11 +17,11 @@ def _m_usr(sess, trid, arg, token):
return
(chat, extra_data) = data
dialect = extra_data['dialect']
user = sess.user
state.dialect = dialect
state.chat = chat
state.front_specific['msn_capabilities'] = extra_data['msn_capabilities']
state.pop_id = pop_id
sess.send_reply('USR', trid, 'OK', arg, user.status.name)
sess.send_reply('USR', trid, 'OK', arg, sess.user.status.name)
@_handlers
def _m_ans(sess, trid, arg, token, sessid):
......
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