from debug import LogEvent, INFO, WARN, ERROR
from tlib.msn import msn
-# Imports from msn
-from msn import FORWARD_LIST, ALLOW_LIST, BLOCK_LIST, REVERSE_LIST, PENDING_LIST
-from msn import STATUS_ONLINE, STATUS_OFFLINE, STATUS_HIDDEN, STATUS_IDLE, STATUS_AWAY, STATUS_BUSY, STATUS_BRB, STATUS_PHONE, STATUS_LUNCH
MAXMESSAGESIZE = 1400
SWITCHBOARDTIMEOUT = 30.0*60.0
self.password = password
self.ident = ident
self.timeout = None
+ self.notificationClient = None
self.connect()
LogEvent(INFO, self.ident)
if self.notificationClient:
count = 0
- def cb():
+ def cb(ignored=None):
if count == 3:
self.ourStatusChanged(statusCode, screenName, personal)
LogEvent(INFO, self.ident)
LogEvent(INFO, self.factory.msncon.ident)
msn.NotificationClient.loggedIn(self, userHandle, verified)
self.factory.msncon._notificationClientReady(self)
+ self.factory.msncon.loggedIn()
if not verified:
self.factory.msncon.accountNotVerified()
def __init__(self, msncon, remoteUser):
SwitchboardSessionBase.__init__(self, msncon)
msn.SwitchboardClient.__init__(self)
- self.remoteUser = remoteUser
+ self.remoteUser = str(remoteUser)
self.ident = (self.msncon, self.remoteUser)
self.chattingUsers = []
self.timeout = None
def sendTypingNotification(self):
LogEvent(INFO, self.ident)
if self.ready:
- msn.SwitchboaldClient.sendTypingNotification(self)
+ msn.SwitchboardClient.sendTypingNotification(self)
CAPS = msn.MSNContact.MSNC1 | msn.MSNContact.MSNC2 | msn.MSNContact.MSNC3 | msn.MSNContact.MSNC4
def sendAvatarRequest(self):