예제 #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
int
weechat_aspell_config_write ()
{
    return weechat_config_write (weechat_aspell_config_file);
}
예제 #3
0
파일: charset.c 프로젝트: Evalle/weechat
int
charset_config_write ()
{
    return weechat_config_write (charset_config_file);
}
예제 #4
0
int
script_config_write ()
{
    return weechat_config_write (script_config_file);
}
예제 #5
0
int
logger_config_write ()
{
    return weechat_config_write (logger_config_file);
}
예제 #6
0
/**
 * Write config data to disk.
 */
int
twc_config_write()
{
    return weechat_config_write(twc_config_file);
}
예제 #7
0
int
xfer_config_write ()
{
    return weechat_config_write (xfer_config_file);
}
예제 #8
0
int
alias_config_write ()
{
    return weechat_config_write (alias_config_file);
}
예제 #9
0
파일: fifo-config.c 프로젝트: lp0/weechat
int
fifo_config_write ()
{
    return weechat_config_write (fifo_config_file);
}
예제 #10
0
int
trigger_config_write ()
{
    return weechat_config_write (trigger_config_file);
}
예제 #11
0
int
relay_config_write ()
{
    return weechat_config_write (relay_config_file);
}
예제 #12
0
int
buflist_config_write ()
{
    return weechat_config_write (buflist_config_file);
}
예제 #13
0
int
rmodifier_config_write ()
{
    return weechat_config_write (rmodifier_config_file);
}