def _send_message(self, message, callback=None, errback=None): content_type = message.content_type[0] ack = msnp.MessageAcknowledgement.HALF if content_type in ("text/x-msnmsgr-datacast", "text/x-msmsgscontrol"): ack = msnp.MessageAcknowledgement.NONE SwitchboardHandler._send_message(self, message, ack, callback=callback, errback=errback)
def leave(self): """Leave the conversation.""" SwitchboardHandler._leave(self)
def invite_user(self, contact): """Request a contact to join in the conversation. @param contact: the contact to invite. @type contact: L{profile.Contact}""" SwitchboardHandler._invite_user(self, contact)
def __init__(self, client, contacts): SwitchboardHandler.__init__(self, client, contacts, priority=0) AbstractConversation.__init__(self, client)