示例#1
0
 def exit(self):
     if self.chat_states_allowed and pref('privacy.send_typing_notifications', False):
         m    = Message(to_jid = self.jid_to, stanza_type='chat')
         node = m.xmlnode
         ChatState('gone').as_xml(node)
         self.protocol.send_message(m)
     self.protocol.conversations.pop(self.id, None)
     Conversation.exit(self)
示例#2
0
 def exit(self):
     if self.chat_states_allowed and pref(
             'privacy.send_typing_notifications', False):
         m = Message(to_jid=self.jid_to, stanza_type='chat')
         node = m.xmlnode
         ChatState('gone').as_xml(node)
         self.protocol.send_message(m)
     self.protocol.conversations.pop(self.id, None)
     Conversation.exit(self)
示例#3
0
    def exit(self):
        buddies_to_notify_of_exit = []
        for buddy in self.other_buddies:
            buddies_to_notify_of_exit.extend([
                'conf_from', buddy.name])

        self.protocol.send('conflogoff', 'available', [
            'frombuddy', self.self_buddy.name,
            'conf_name', self.name,
            ] + buddies_to_notify_of_exit)

        Conversation.exit(self)
示例#4
0
    def exit(self):
        buddies_to_notify_of_exit = []
        for buddy in self.other_buddies:
            buddies_to_notify_of_exit.extend(['conf_from', buddy.name])

        self.protocol.send('conflogoff', 'available', [
            'frombuddy',
            self.self_buddy.name,
            'conf_name',
            self.name,
        ] + buddies_to_notify_of_exit)

        Conversation.exit(self)
示例#5
0
 def exit(self):
     self.room_list[:] = []
     Conversation.exit(self)
示例#6
0
 def exit(self):
     log.info('YahooChat exit: sending chatlogout_available')
     self.protocol.send('chatlogout', 'available', frombuddy = self.myname)
     Conversation.exit(self)
示例#7
0
 def exit(self):
     self.protocol.exit_conversation(self)
     Conversation.exit(self)
示例#8
0
 def exit(self):
     log.info('YahooChat exit: sending chatlogout_available')
     self.protocol.send('chatlogout', 'available', frombuddy=self.myname)
     Conversation.exit(self)
示例#9
0
 def exit(self):
     self.protocol.exit_conversation(self)
     Conversation.exit(self)
示例#10
0
 def exit(self):
     self.room_list[:] = []
     Conversation.exit(self)