Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
 def exit(self):
     self.room_list[:] = []
     Conversation.exit(self)
Esempio n. 6
0
 def exit(self):
     log.info('YahooChat exit: sending chatlogout_available')
     self.protocol.send('chatlogout', 'available', frombuddy = self.myname)
     Conversation.exit(self)
Esempio n. 7
0
 def exit(self):
     self.protocol.exit_conversation(self)
     Conversation.exit(self)
Esempio n. 8
0
 def exit(self):
     log.info('YahooChat exit: sending chatlogout_available')
     self.protocol.send('chatlogout', 'available', frombuddy=self.myname)
     Conversation.exit(self)
Esempio n. 9
0
 def exit(self):
     self.protocol.exit_conversation(self)
     Conversation.exit(self)
Esempio n. 10
0
 def exit(self):
     self.room_list[:] = []
     Conversation.exit(self)