static void _wec_config_init(void) { _wec_context.config.file = weechat_config_new("eventc", NULL, NULL, NULL); _wec_define_section(events); _wec_define_boolean(events, highlight, "on", "Highlight (channel and private), they are treated as normal messages (and filtred as such) if this setting is 'off'"); _wec_define_boolean(events, chat, "off", "Channel messages"); _wec_define_boolean(events, im, "on", "Private messages"); _wec_define_boolean(events, notice, "on", "Notices"); _wec_define_boolean(events, action, "off", "Action messages (/me)"); _wec_define_boolean(events, notify, "on", "Presence notifications"); _wec_define_boolean(events, join, "off", "Channel join"); _wec_define_boolean(events, leave, "off", "Channel leave"); _wec_define_boolean(events, quit, "off", "Channel quit"); _wec_define_section(restrictions); _wec_define_boolean_(restrictions, "ignore-current-buffer", ignore_current_buffer, "on", "Ignore messages from currently displayed buffer"); _wec_define_string(restrictions, blacklist, "", "A (space-separated) list of nicknames to completely ignore"); switch ( weechat_config_read(_wec_context.config.file) ) { case WEECHAT_CONFIG_READ_OK: break; case WEECHAT_CONFIG_READ_MEMORY_ERROR: break; case WEECHAT_CONFIG_READ_FILE_NOT_FOUND: weechat_config_write(_wec_context.config.file); break; } }
int weechat_aspell_config_write () { return weechat_config_write (weechat_aspell_config_file); }
int charset_config_write () { return weechat_config_write (charset_config_file); }
int script_config_write () { return weechat_config_write (script_config_file); }
int logger_config_write () { return weechat_config_write (logger_config_file); }
/** * Write config data to disk. */ int twc_config_write() { return weechat_config_write(twc_config_file); }
int xfer_config_write () { return weechat_config_write (xfer_config_file); }
int alias_config_write () { return weechat_config_write (alias_config_file); }
int fifo_config_write () { return weechat_config_write (fifo_config_file); }
int trigger_config_write () { return weechat_config_write (trigger_config_file); }
int relay_config_write () { return weechat_config_write (relay_config_file); }
int buflist_config_write () { return weechat_config_write (buflist_config_file); }
int rmodifier_config_write () { return weechat_config_write (rmodifier_config_file); }