home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- from common.Protocol import ProtocolException
-
- class OscarException(ProtocolException):
- pass
-
- import capabilities
- from oscar.OscarSocket import OscarSocket as socket
- from oscar.OscarConversation import OscarConversation as conversation
- from oscar.OscarBuddies import OscarBuddies as buddies
- from oscar.OscarBuddies import OscarBuddy as buddy
- import oscar.OscarUtil as util
- from oscar.OscarUtil import apply_format as unpack, decode
- from OscarProtocol import SnacQueue, LoginError, ScreennameError, RedirectError
- from oscar.snac import SnacError
- from oscar.ssi import SSIException
- import snac
- from oscar.OscarProtocol import OscarProtocol as protocol
- errors = OscarException
- auth_errcode = {
- 1: 'Invalid nick or password',
- 2: 'Service temporarily unavailable',
- 3: 'All other errors',
- 4: 'Incorrect screenname or password.',
- 5: 'The username and password you entered do not match.',
- 6: 'Internal client error (bad input to authorizer)',
- 7: 'Invalid account',
- 8: 'Deleted account',
- 9: 'Expired account',
- 10: 'No access to database',
- 11: 'No access to resolver',
- 12: 'Invalid database fields',
- 13: 'Bad database status',
- 14: 'Bad resolver status',
- 15: 'Internal error',
- 16: 'Service temporarily offline',
- 17: 'Suspended account',
- 18: 'DB send error',
- 19: 'DB link error',
- 20: 'Reservation map error',
- 21: 'Reservation link error',
- 22: 'The users num connected from this IP has reached the maximum',
- 23: 'The users num connected from this IP has reached the maximum (reservation)',
- 24: 'You are trying to connect too frequently. Please try to reconnect in a few minutes.',
- 25: 'User too heavily warned',
- 26: 'Reservation timeout',
- 27: 'You are using an older version of ICQ. Upgrade required',
- 28: 'You are using an older version of ICQ. Upgrade recommended',
- 29: 'Rate limit exceeded. Please try to reconnect in a few minutes',
- 30: "Can't register on the ICQ network. Reconnect in a few minutes",
- 32: 'Invalid SecurID',
- 34: 'Account suspended because of your age (age < 13)' }
-
- def _lowerstrip(name):
- if isinstance(name, bytes):
- name = name.decode('utf8')
-
- if not isinstance(name, unicode):
- return name
- name = ''.join(name.split())
- name = name.lower()
- name = name.encode('utf8')
- return name
-
-