def ircrypt_config_special_cipher_write_cb(data, config_file, section_name): '''Write passphrases to the key section of the configuration file. ''' weechat.config_write_line(config_file, section_name, '') for target, cipher in sorted(list(ircrypt_cipher.items())): weechat.config_write_line(config_file, target.lower(), cipher) return weechat.WEECHAT_RC_OK
def fish_config_keys_write_cb(data, config_file, section_name): global fish_keys weechat.config_write_line(config_file, section_name, "") for target, key in sorted(fish_keys.iteritems()): weechat.config_write_line(config_file, target, key) return weechat.WEECHAT_RC_OK
def ircrypt_config_asym_id_write_cb(data, config_file, section_name): '''Write passphrases to the key section of the configuration file. ''' global ircrypt_asym_id weechat.config_write_line(config_file, section_name, '') for target, asym_id in sorted(list(ircrypt_asym_id.items())): weechat.config_write_line(config_file, target.lower(), asym_id) return weechat.WEECHAT_RC_OK
def fish_config_keys_write_cb(data, config_file, section_name): global fish_keys, fish_secure_cipher weechat.config_write_line(config_file, section_name, "") for target, key in sorted(fish_keys.items()): if fish_secure_cipher is not None: weechat.config_write_line( config_file, blowcrypt_pack(target, fish_secure_cipher), blowcrypt_pack(key, fish_secure_cipher)) else: weechat.config_write_line(config_file, target, key) return weechat.WEECHAT_RC_OK
def fish_config_keys_write_cb(data, config_file, section_name): global fish_keys, fish_secure_cipher weechat.config_write_line(config_file, section_name, "") for target, key in sorted(fish_keys.iteritems()): if fish_secure_cipher != None: ### ENCRYPT Targets/Keys ### weechat.config_write_line(config_file, blowcrypt_pack(target, fish_secure_cipher), blowcrypt_pack(key, fish_secure_cipher)) else: weechat.config_write_line(config_file, target, key) return weechat.WEECHAT_RC_OK
def execbot_config_allows_write_cb(data, config_file, section_name): '''Write infomation to the allows section of the configuration file.''' weechat.config_write_line(config_file, section_name, '') for username, right in sorted(list(execbot_allows.items())): weechat.config_write_line(config_file, username.lower(), right) return weechat.WEECHAT_RC_OK
def crypt_config_keys_write(data, config_file, section_name): weechat.config_write_line(config_file, section_name, "") for target, cipher in sorted(crypt_ciphers.items()): weechat.config_write_line(config_file, target, cipher.key) return weechat.WEECHAT_RC_OK