Import ssl Python versions before 3.0 do not use UTF-8 encoding by default. See the file LICENSE for copying permission. Please tell me where and how do i integrate the plugin. I need your help, im new in python and i don't know how i can integrate in my script. add_message( 'Your: %s Their: %s' % ( our, their)) Returns the status of encryption for the associated jid. MSG_STATE_ENCRYPTED:ĭef display_encryption_status( self, jid): #('D: '.format(display, reply))Įlif state = pyotr. # there’s nothing to decrypt if this is a chatstate, for exampleĭisplay, reply = otr_state. encode())ĭef on_conversation_msg( self, message, tab): # Not sure what to do with xhtml bodies, and I don't like them anyway ) # there’s nothing to encrypt if this is a chatstate, for example otr_on_state_change( tab))ĭef on_conversation_say( self, message, tab): otr_special( tab, 'Warn'), on_state_change = self. otr_special( tab, 'Error'), on_warn = self. add_message( 'OTR state has changed from %s to %s' % ( old, new)) display_encryption_status)ĬonversationTab. command_otr, "Usage: /otr \notr: Start or stop OTR for the current conversation", self. add_tab_command( ConversationTab, 'otr', self. add_event_handler( 'conversation_msg', self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |