home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- from logging import getLogger
- log = getLogger('msn.p14.ns')
- from util import get
- import msn
- from msn.p13 import Notification as Super
-
- class MSNP14Notification(Super):
- versions = [
- 'MSNP14']
- client_chl_id = challenge_id = 'PROD0112J1LW7%NB'
- client_chl_code = 'RH96F{PHI8PPX_TJ'
- events = Super.events | set(('fed_message',))
-
- def recv_iln(self, msg):
- log.debug('got iln')
- if not msg.args[5:]:
- pass
- (status, name, btype, nick, client_id) = msg.args[:5]
- _MSNP14Notification__args = ()
- if not msn.util.url_decode(nick).decode('utf-8'):
- pass
- nick = None
- btype = int(btype)
- client_id = int(client_id)
- iconinfo = msn.util.url_decode(get(_MSNP14Notification__args, 0, ''))
- if '<' in iconinfo and '>' in iconinfo:
- msnobj = msn.MSNObject.parse(iconinfo)
- else:
- msnobj = None
- self.event('contact_online_initial', name, nick, status, client_id)
- self.event('contact_icon_info', name, msnobj)
- self.event('contact_btype', name, btype)
-
-
- def recv_nln(self, msg):
- log.debug('got nln')
- if not msg.args[5:]:
- pass
- (status, name, btype, nick, client_id) = msg.args[:5]
- _MSNP14Notification__args = ()
- if not msn.util.url_decode(nick).decode('utf-8'):
- pass
- nick = None
- btype = int(btype)
- client_id = int(client_id)
- iconinfo = msn.util.url_decode(get(_MSNP14Notification__args, 0, ''))
- if '<' in iconinfo and '>' in iconinfo:
- msnobj = msn.MSNObject.parse(iconinfo)
- else:
- msnobj = None
- self.event('contact_online', name, nick, status, client_id)
- self.event('contact_icon_info', name, msnobj)
- self.event('contact_btype', name, btype)
-
-
- def recv_ubx(self, msg):
- (bname, btype) = msg.args
- msg.args = (bname,)
- self.event('contact_btype', bname, int(btype))
- Super.recv_ubx(self, msg)
-
-
- def recv_ubm(self, msg):
- name = msg.args[0]
- self.event('fed_message', name, msg)
-
-
-