Example #1
0
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;
    }
}
Example #2
0
int
trigger_config_read ()
{
    int rc;

    rc = weechat_config_read (trigger_config_file);

    trigger_config_use_temp_triggers ();

    return rc;
}
Example #3
0
int
logger_config_read ()
{
    int rc;
    
    logger_config_loading = 1;
    rc = weechat_config_read (logger_config_file);
    logger_config_loading = 0;
    
    return rc;
}
Example #4
0
int
logger_config_read ()
{
    int rc;

    logger_config_loading = 1;
    rc = weechat_config_read (logger_config_file);
    logger_config_loading = 0;

    logger_config_flush_delay_change (NULL, NULL, NULL);

    return rc;
}
Example #5
0
int
relay_config_read ()
{
    int rc;

    rc = weechat_config_read (relay_config_file);
    if (rc == WEECHAT_CONFIG_READ_OK)
    {
        relay_config_change_network_allowed_ips (NULL, NULL);
        relay_config_change_irc_backlog_tags (NULL, NULL);
    }
    return rc;
}
Example #6
0
int
weechat_aspell_config_read ()
{
    int rc;
    
    rc = weechat_config_read (weechat_aspell_config_file);
    if (rc == WEECHAT_CONFIG_READ_OK)
    {
        weechat_aspell_config_change_commands (NULL,
                                               weechat_aspell_config_check_commands);
    }
    
    return rc;
}
Example #7
0
int
buflist_config_read ()
{
    int rc;

    rc = weechat_config_read (buflist_config_file);

    if (rc == WEECHAT_CONFIG_READ_OK)
    {
        buflist_config_change_sort (NULL, NULL, NULL);
        buflist_config_change_signals_refresh (NULL, NULL, NULL);
        buflist_config_change_format (NULL, NULL, NULL);
    }

    return rc;
}
Example #8
0
int
weechat_aspell_config_read ()
{
    int rc;

    weechat_aspell_config_loading = 1;
    rc = weechat_config_read (weechat_aspell_config_file);
    weechat_aspell_config_loading = 0;
    if (rc == WEECHAT_CONFIG_READ_OK)
    {
        weechat_aspell_config_change_commands (
            NULL, NULL, weechat_aspell_config_check_commands);
    }
    weechat_aspell_speller_remove_unused ();

    return rc;
}
Example #9
0
int
charset_config_read ()
{
    return weechat_config_read (charset_config_file);
}
Example #10
0
int
script_config_read ()
{
    return weechat_config_read (script_config_file);
}
Example #11
0
/**
 * Read config data from file, creating profile objects for stored profiles.
 */
int
twc_config_read()
{
    return weechat_config_read(twc_config_file);
}
Example #12
0
int
alias_config_read ()
{
    return weechat_config_read (alias_config_file);
}
Example #13
0
int
xfer_config_read ()
{
    return weechat_config_read (xfer_config_file);
}
Example #14
0
int
fifo_config_read ()
{
    return weechat_config_read (fifo_config_file);
}
Example #15
0
int
rmodifier_config_read ()
{
    return weechat_config_read (rmodifier_config_file);
}