コード例 #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;
    }
}
コード例 #2
0
ファイル: trigger-config.c プロジェクト: lp0/weechat
int
trigger_config_read ()
{
    int rc;

    rc = weechat_config_read (trigger_config_file);

    trigger_config_use_temp_triggers ();

    return rc;
}
コード例 #3
0
ファイル: logger-config.c プロジェクト: matsuu/weechat
int
logger_config_read ()
{
    int rc;
    
    logger_config_loading = 1;
    rc = weechat_config_read (logger_config_file);
    logger_config_loading = 0;
    
    return rc;
}
コード例 #4
0
ファイル: logger-config.c プロジェクト: sardemff7/weechat
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;
}
コード例 #5
0
ファイル: relay-config.c プロジェクト: FauxFaux/weechat_old
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;
}
コード例 #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;
}
コード例 #7
0
ファイル: buflist-config.c プロジェクト: weechat/weechat
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;
}
コード例 #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;
}
コード例 #9
0
ファイル: charset.c プロジェクト: Evalle/weechat
int
charset_config_read ()
{
    return weechat_config_read (charset_config_file);
}
コード例 #10
0
ファイル: script-config.c プロジェクト: FauxFaux/weechat_old
int
script_config_read ()
{
    return weechat_config_read (script_config_file);
}
コード例 #11
0
ファイル: twc-config.c プロジェクト: kytvi2p/tox-weechat
/**
 * Read config data from file, creating profile objects for stored profiles.
 */
int
twc_config_read()
{
    return weechat_config_read(twc_config_file);
}
コード例 #12
0
ファイル: alias-config.c プロジェクト: Shawn-Smith/weechat
int
alias_config_read ()
{
    return weechat_config_read (alias_config_file);
}
コード例 #13
0
ファイル: xfer-config.c プロジェクト: FauxFaux/weechat_old
int
xfer_config_read ()
{
    return weechat_config_read (xfer_config_file);
}
コード例 #14
0
ファイル: fifo-config.c プロジェクト: lp0/weechat
int
fifo_config_read ()
{
    return weechat_config_read (fifo_config_file);
}
コード例 #15
0
ファイル: rmodifier-config.c プロジェクト: munkee/weechat
int
rmodifier_config_read ()
{
    return weechat_config_read (rmodifier_config_file);
}