39 |
#include "weeconfig.h" |
#include "weeconfig.h" |
40 |
#include "command.h" |
#include "command.h" |
41 |
#include "fifo.h" |
#include "fifo.h" |
42 |
|
#include "log.h" |
43 |
#include "../irc/irc.h" |
#include "../irc/irc.h" |
44 |
#include "../gui/gui.h" |
#include "../gui/gui.h" |
45 |
|
|
541 |
N_("maximum number of lines in history " |
N_("maximum number of lines in history " |
542 |
"for one server/channel/private window (0 = unlimited)"), |
"for one server/channel/private window (0 = unlimited)"), |
543 |
OPTION_TYPE_INT, 0, INT_MAX, 4096, |
OPTION_TYPE_INT, 0, INT_MAX, 4096, |
544 |
NULL, NULL, &cfg_history_max_lines, NULL, config_change_noop }, |
NULL, NULL, &cfg_history_max_lines, NULL, &config_change_noop }, |
545 |
{ "history_max_commands", N_("max user commands in history"), |
{ "history_max_commands", N_("max user commands in history"), |
546 |
N_("maximum number of user commands in history (0 = unlimited)"), |
N_("maximum number of user commands in history (0 = unlimited)"), |
547 |
OPTION_TYPE_INT, 0, INT_MAX, 100, |
OPTION_TYPE_INT, 0, INT_MAX, 100, |
548 |
NULL, NULL, &cfg_history_max_commands, NULL, config_change_noop }, |
NULL, NULL, &cfg_history_max_commands, NULL, &config_change_noop }, |
549 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
550 |
}; |
}; |
551 |
|
|
563 |
{ { "log_auto_server", N_("automatically log server messages"), |
{ { "log_auto_server", N_("automatically log server messages"), |
564 |
N_("automatically log server messages"), |
N_("automatically log server messages"), |
565 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
566 |
NULL, NULL, &cfg_log_auto_server, NULL, NULL }, |
NULL, NULL, &cfg_log_auto_server, NULL, &config_change_log }, |
567 |
{ "log_auto_channel", N_("automatically log channel chats"), |
{ "log_auto_channel", N_("automatically log channel chats"), |
568 |
N_("automatically log channel chats"), |
N_("automatically log channel chats"), |
569 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
570 |
NULL, NULL, &cfg_log_auto_channel, NULL, NULL }, |
NULL, NULL, &cfg_log_auto_channel, NULL, &config_change_log }, |
571 |
{ "log_auto_private", N_("automatically log private chats"), |
{ "log_auto_private", N_("automatically log private chats"), |
572 |
N_("automatically log private chats"), |
N_("automatically log private chats"), |
573 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
574 |
NULL, NULL, &cfg_log_auto_private, NULL, NULL }, |
NULL, NULL, &cfg_log_auto_private, NULL, &config_change_log }, |
575 |
{ "log_plugin_msg", N_("log messages from plugins (scripts)"), |
{ "log_plugin_msg", N_("log messages from plugins (scripts)"), |
576 |
N_("log messages from plugins (scripts)"), |
N_("log messages from plugins (scripts)"), |
577 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
578 |
NULL, NULL, &cfg_log_plugin_msg, NULL, NULL }, |
NULL, NULL, &cfg_log_plugin_msg, NULL, &config_change_noop }, |
579 |
{ "log_path", N_("path for log files"), |
{ "log_path", N_("path for log files"), |
580 |
N_("path for WeeChat log files"), |
N_("path for WeeChat log files"), |
581 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
582 |
"~/.weechat/logs/", NULL, NULL, &cfg_log_path, config_change_noop }, |
"~/.weechat/logs/", NULL, NULL, &cfg_log_path, &config_change_noop }, |
583 |
{ "log_timestamp", N_("timestamp for log"), |
{ "log_timestamp", N_("timestamp for log"), |
584 |
N_("timestamp for log (see man strftime for date/time specifiers)"), |
N_("timestamp for log (see man strftime for date/time specifiers)"), |
585 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
586 |
"%Y %b %d %H:%M:%S", NULL, NULL, &cfg_log_timestamp, config_change_noop }, |
"%Y %b %d %H:%M:%S", NULL, NULL, &cfg_log_timestamp, &config_change_noop }, |
587 |
{ "log_hide_nickserv_pwd", N_("hide password displayed by nickserv"), |
{ "log_hide_nickserv_pwd", N_("hide password displayed by nickserv"), |
588 |
N_("hide password displayed by nickserv"), |
N_("hide password displayed by nickserv"), |
589 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
590 |
NULL, NULL, &cfg_log_hide_nickserv_pwd, NULL, config_change_noop }, |
NULL, NULL, &cfg_log_hide_nickserv_pwd, NULL, &config_change_noop }, |
591 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
592 |
}; |
}; |
593 |
|
|
609 |
{ { "irc_display_away", N_("display message to all channels when away"), |
{ { "irc_display_away", N_("display message to all channels when away"), |
610 |
N_("display message to all channels when (un)marking as away"), |
N_("display message to all channels when (un)marking as away"), |
611 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
612 |
NULL, NULL, &cfg_irc_display_away, NULL, config_change_noop }, |
NULL, NULL, &cfg_irc_display_away, NULL, &config_change_noop }, |
613 |
{ "irc_default_msg_away", N_("default message when away"), |
{ "irc_default_msg_away", N_("default message when away"), |
614 |
N_("default message when away"), |
N_("default message when away"), |
615 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
616 |
"away", NULL, NULL, &cfg_irc_default_msg_away, config_change_noop }, |
"away", NULL, NULL, &cfg_irc_default_msg_away, &config_change_noop }, |
617 |
{ "irc_default_msg_part", N_("default part message (leaving channel)"), |
{ "irc_default_msg_part", N_("default part message (leaving channel)"), |
618 |
N_("default part message (leaving channel)"), |
N_("default part message (leaving channel)"), |
619 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
620 |
"WeeChat %v", NULL, NULL, &cfg_irc_default_msg_part, config_change_noop }, |
"WeeChat %v", NULL, NULL, &cfg_irc_default_msg_part, &config_change_noop }, |
621 |
{ "irc_default_msg_quit", N_("default quit message"), |
{ "irc_default_msg_quit", N_("default quit message"), |
622 |
N_("default quit message ('%v' will be replaced by WeeChat version in string)"), |
N_("default quit message ('%v' will be replaced by WeeChat version in string)"), |
623 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
624 |
"WeeChat %v", NULL, NULL, &cfg_irc_default_msg_quit, config_change_noop }, |
"WeeChat %v", NULL, NULL, &cfg_irc_default_msg_quit, &config_change_noop }, |
625 |
{ "irc_notice_as_pv", N_("display notices as private messages"), |
{ "irc_notice_as_pv", N_("display notices as private messages"), |
626 |
N_("display notices as private messages"), |
N_("display notices as private messages"), |
627 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
628 |
NULL, NULL, &cfg_irc_notice_as_pv, NULL, config_change_noop }, |
NULL, NULL, &cfg_irc_notice_as_pv, NULL, &config_change_noop }, |
629 |
{ "irc_away_check", N_("interval between two checks for away"), |
{ "irc_away_check", N_("interval between two checks for away"), |
630 |
N_("interval between two checks for away (in minutes, 0 = never check)"), |
N_("interval between two checks for away (in minutes, 0 = never check)"), |
631 |
OPTION_TYPE_INT, 0, INT_MAX, 0, |
OPTION_TYPE_INT, 0, INT_MAX, 0, |
632 |
NULL, NULL, &cfg_irc_away_check, NULL, config_change_away_check }, |
NULL, NULL, &cfg_irc_away_check, NULL, &config_change_away_check }, |
633 |
{ "irc_lag_check", N_("interval between two checks for lag"), |
{ "irc_lag_check", N_("interval between two checks for lag"), |
634 |
N_("interval between two checks for lag (in seconds)"), |
N_("interval between two checks for lag (in seconds)"), |
635 |
OPTION_TYPE_INT, 30, INT_MAX, 60, |
OPTION_TYPE_INT, 30, INT_MAX, 60, |
636 |
NULL, NULL, &cfg_irc_lag_check, NULL, config_change_noop }, |
NULL, NULL, &cfg_irc_lag_check, NULL, &config_change_noop }, |
637 |
{ "irc_lag_min_show", N_("minimum lag to show"), |
{ "irc_lag_min_show", N_("minimum lag to show"), |
638 |
N_("minimum lag to show (in seconds)"), |
N_("minimum lag to show (in seconds)"), |
639 |
OPTION_TYPE_INT, 0, INT_MAX, 1, |
OPTION_TYPE_INT, 0, INT_MAX, 1, |
640 |
NULL, NULL, &cfg_irc_lag_min_show, NULL, config_change_noop }, |
NULL, NULL, &cfg_irc_lag_min_show, NULL, &config_change_noop }, |
641 |
{ "irc_lag_disconnect", N_("disconnect after important lag"), |
{ "irc_lag_disconnect", N_("disconnect after important lag"), |
642 |
N_("disconnect after important lag (in minutes, 0 = never disconnect)"), |
N_("disconnect after important lag (in minutes, 0 = never disconnect)"), |
643 |
OPTION_TYPE_INT, 0, INT_MAX, 5, |
OPTION_TYPE_INT, 0, INT_MAX, 5, |
644 |
NULL, NULL, &cfg_irc_lag_disconnect, NULL, config_change_noop }, |
NULL, NULL, &cfg_irc_lag_disconnect, NULL, &config_change_noop }, |
645 |
{ "irc_fifo_pipe", N_("create a FIFO pipe for remote control"), |
{ "irc_fifo_pipe", N_("create a FIFO pipe for remote control"), |
646 |
N_("create a FIFO pipe for remote control"), |
N_("create a FIFO pipe for remote control"), |
647 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
648 |
NULL, NULL, &cfg_irc_fifo_pipe, NULL, config_change_fifo_pipe }, |
NULL, NULL, &cfg_irc_fifo_pipe, NULL, &config_change_fifo_pipe }, |
649 |
{ "irc_highlight", N_("list of words to highlight"), |
{ "irc_highlight", N_("list of words to highlight"), |
650 |
N_("comma separated list of words to highlight (case insensitive comparison)"), |
N_("comma separated list of words to highlight (case insensitive comparison)"), |
651 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
652 |
"", NULL, NULL, &cfg_irc_highlight, config_change_noop }, |
"", NULL, NULL, &cfg_irc_highlight, &config_change_noop }, |
653 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
654 |
}; |
}; |
655 |
|
|
669 |
{ { "dcc_auto_accept_files", N_("automatically accept dcc files"), |
{ { "dcc_auto_accept_files", N_("automatically accept dcc files"), |
670 |
N_("automatically accept incoming dcc files"), |
N_("automatically accept incoming dcc files"), |
671 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
672 |
NULL, NULL, &cfg_dcc_auto_accept_files, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_auto_accept_files, NULL, &config_change_noop }, |
673 |
{ "dcc_auto_accept_chats", N_("automatically accept dcc chats"), |
{ "dcc_auto_accept_chats", N_("automatically accept dcc chats"), |
674 |
N_("automatically accept dcc chats (use carefully!)"), |
N_("automatically accept dcc chats (use carefully!)"), |
675 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
676 |
NULL, NULL, &cfg_dcc_auto_accept_chats, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_auto_accept_chats, NULL, &config_change_noop }, |
677 |
{ "dcc_timeout", N_("timeout for dcc request"), |
{ "dcc_timeout", N_("timeout for dcc request"), |
678 |
N_("timeout for dcc request (in seconds)"), |
N_("timeout for dcc request (in seconds)"), |
679 |
OPTION_TYPE_INT, 1, INT_MAX, 300, |
OPTION_TYPE_INT, 1, INT_MAX, 300, |
680 |
NULL, NULL, &cfg_dcc_timeout, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_timeout, NULL, &config_change_noop }, |
681 |
{ "dcc_blocksize", N_("block size for dcc packets"), |
{ "dcc_blocksize", N_("block size for dcc packets"), |
682 |
N_("block size for dcc packets in bytes (default: 65536)"), |
N_("block size for dcc packets in bytes (default: 65536)"), |
683 |
OPTION_TYPE_INT, 1024, 102400, 65536, |
OPTION_TYPE_INT, 1024, 102400, 65536, |
684 |
NULL, NULL, &cfg_dcc_blocksize, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_blocksize, NULL, &config_change_noop }, |
685 |
{ "dcc_download_path", N_("path for incoming files with dcc"), |
{ "dcc_download_path", N_("path for incoming files with dcc"), |
686 |
N_("path for writing incoming files with dcc (default: user home)"), |
N_("path for writing incoming files with dcc (default: user home)"), |
687 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
688 |
"~", NULL, NULL, &cfg_dcc_download_path, config_change_noop }, |
"~", NULL, NULL, &cfg_dcc_download_path, &config_change_noop }, |
689 |
{ "dcc_upload_path", N_("default path for sending files with dcc"), |
{ "dcc_upload_path", N_("default path for sending files with dcc"), |
690 |
N_("path for reading files when sending thru dcc (when no path is specified)"), |
N_("path for reading files when sending thru dcc (when no path is specified)"), |
691 |
OPTION_TYPE_STRING, 0, 0, 0, "~", |
OPTION_TYPE_STRING, 0, 0, 0, "~", |
692 |
NULL, NULL, &cfg_dcc_upload_path, config_change_noop }, |
NULL, NULL, &cfg_dcc_upload_path, &config_change_noop }, |
693 |
{ "dcc_convert_spaces", N_("convert spaces to underscores when sending files"), |
{ "dcc_convert_spaces", N_("convert spaces to underscores when sending files"), |
694 |
N_("convert spaces to underscores when sending files"), |
N_("convert spaces to underscores when sending files"), |
695 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
696 |
NULL, NULL, &cfg_dcc_convert_spaces, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_convert_spaces, NULL, &config_change_noop }, |
697 |
{ "dcc_auto_rename", N_("automatically rename dcc files if already exists"), |
{ "dcc_auto_rename", N_("automatically rename dcc files if already exists"), |
698 |
N_("rename incoming files if already exists (add '.1', '.2', ...)"), |
N_("rename incoming files if already exists (add '.1', '.2', ...)"), |
699 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
700 |
NULL, NULL, &cfg_dcc_auto_rename, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_auto_rename, NULL, &config_change_noop }, |
701 |
{ "dcc_auto_resume", N_("automatically resume aborted transfers"), |
{ "dcc_auto_resume", N_("automatically resume aborted transfers"), |
702 |
N_("automatically resume dcc transfer if connection with remote host is loosed"), |
N_("automatically resume dcc transfer if connection with remote host is loosed"), |
703 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE, |
704 |
NULL, NULL, &cfg_dcc_auto_resume, NULL, config_change_noop }, |
NULL, NULL, &cfg_dcc_auto_resume, NULL, &config_change_noop }, |
705 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
706 |
}; |
}; |
707 |
|
|
721 |
{ { "proxy_use", N_("use proxy"), |
{ { "proxy_use", N_("use proxy"), |
722 |
N_("use a proxy server to connect to irc server"), |
N_("use a proxy server to connect to irc server"), |
723 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
724 |
NULL, NULL, &cfg_proxy_use, NULL, config_change_noop }, |
NULL, NULL, &cfg_proxy_use, NULL, &config_change_noop }, |
725 |
{ "proxy_type", N_("proxy type"), |
{ "proxy_type", N_("proxy type"), |
726 |
N_("proxy type (http (default), socks4, socks5)"), |
N_("proxy type (http (default), socks4, socks5)"), |
727 |
OPTION_TYPE_INT_WITH_STRING, 0, 0, 0, |
OPTION_TYPE_INT_WITH_STRING, 0, 0, 0, |
728 |
"http", cfg_proxy_type_values, &cfg_proxy_type, NULL, config_change_noop }, |
"http", cfg_proxy_type_values, &cfg_proxy_type, NULL, &config_change_noop }, |
729 |
{ "proxy_ipv6", N_("use ipv6 proxy"), |
{ "proxy_ipv6", N_("use ipv6 proxy"), |
730 |
N_("connect to proxy in ipv6"), |
N_("connect to proxy in ipv6"), |
731 |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, |
732 |
NULL, NULL, &cfg_proxy_ipv6, NULL, config_change_noop }, |
NULL, NULL, &cfg_proxy_ipv6, NULL, &config_change_noop }, |
733 |
{ "proxy_address", N_("proxy address"), |
{ "proxy_address", N_("proxy address"), |
734 |
N_("proxy server address (IP or hostname)"), |
N_("proxy server address (IP or hostname)"), |
735 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
736 |
"", NULL, NULL, &cfg_proxy_address, config_change_noop }, |
"", NULL, NULL, &cfg_proxy_address, &config_change_noop }, |
737 |
{ "proxy_port", N_("port for proxy"), |
{ "proxy_port", N_("port for proxy"), |
738 |
N_("port for connecting to proxy server"), |
N_("port for connecting to proxy server"), |
739 |
OPTION_TYPE_INT, 0, 65535, 3128, |
OPTION_TYPE_INT, 0, 65535, 3128, |
740 |
NULL, NULL, &cfg_proxy_port, NULL, config_change_noop }, |
NULL, NULL, &cfg_proxy_port, NULL, &config_change_noop }, |
741 |
{ "proxy_username", N_("proxy username"), |
{ "proxy_username", N_("proxy username"), |
742 |
N_("username for proxy server"), |
N_("username for proxy server"), |
743 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
744 |
"", NULL, NULL, &cfg_proxy_username, config_change_noop }, |
"", NULL, NULL, &cfg_proxy_username, &config_change_noop }, |
745 |
{ "proxy_password", N_("proxy password"), |
{ "proxy_password", N_("proxy password"), |
746 |
N_("password for proxy server"), |
N_("password for proxy server"), |
747 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
748 |
"", NULL, NULL, &cfg_proxy_password, config_change_noop }, |
"", NULL, NULL, &cfg_proxy_password, &config_change_noop }, |
749 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
750 |
}; |
}; |
751 |
|
|
759 |
{ { "plugins_path", N_("path for searching plugins"), |
{ { "plugins_path", N_("path for searching plugins"), |
760 |
N_("path for searching plugins"), |
N_("path for searching plugins"), |
761 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
762 |
"~/.weechat/plugins", NULL, NULL, &cfg_plugins_path, config_change_noop }, |
"~/.weechat/plugins", NULL, NULL, &cfg_plugins_path, &config_change_noop }, |
763 |
{ "plugins_autoload", N_("list of plugins to load automatically"), |
{ "plugins_autoload", N_("list of plugins to load automatically"), |
764 |
N_("comma separated list of plugins to load automatically at startup, " |
N_("comma separated list of plugins to load automatically at startup, " |
765 |
"\"*\" means all plugins found " |
"\"*\" means all plugins found " |
766 |
"(names may be partial, for example \"perl\" is ok for \"libperl.so\")"), |
"(names may be partial, for example \"perl\" is ok for \"libperl.so\")"), |
767 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
768 |
"*", NULL, NULL, &cfg_plugins_autoload, config_change_noop }, |
"*", NULL, NULL, &cfg_plugins_autoload, &config_change_noop }, |
769 |
{ "plugins_extension", N_("standard plugins extension in filename"), |
{ "plugins_extension", N_("standard plugins extension in filename"), |
770 |
N_("standard plugins extension in filename, used for autoload " |
N_("standard plugins extension in filename, used for autoload " |
771 |
"(if empty, then all files are loaded when autoload is \"*\")"), |
"(if empty, then all files are loaded when autoload is \"*\")"), |
775 |
#else |
#else |
776 |
".so", |
".so", |
777 |
#endif |
#endif |
778 |
NULL, NULL, &cfg_plugins_extension, config_change_noop }, |
NULL, NULL, &cfg_plugins_extension, &config_change_noop }, |
779 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
780 |
}; |
}; |
781 |
|
|
1057 |
} |
} |
1058 |
} |
} |
1059 |
|
|
1060 |
|
/* |
1061 |
|
* config_change_log: called when log settings are changed (for server/channel/private logging) |
1062 |
|
*/ |
1063 |
|
|
1064 |
|
void |
1065 |
|
config_change_log () |
1066 |
|
{ |
1067 |
|
t_gui_buffer *ptr_buffer; |
1068 |
|
|
1069 |
|
for (ptr_buffer = gui_buffers; ptr_buffer; |
1070 |
|
ptr_buffer = ptr_buffer->next_buffer) |
1071 |
|
{ |
1072 |
|
if (BUFFER_IS_SERVER(ptr_buffer)) |
1073 |
|
{ |
1074 |
|
if (cfg_log_auto_server && !ptr_buffer->log_file) |
1075 |
|
log_start (ptr_buffer); |
1076 |
|
else if (!cfg_log_auto_server && ptr_buffer->log_file) |
1077 |
|
log_end (ptr_buffer); |
1078 |
|
} |
1079 |
|
if (BUFFER_IS_CHANNEL(ptr_buffer)) |
1080 |
|
{ |
1081 |
|
if (cfg_log_auto_channel && !ptr_buffer->log_file) |
1082 |
|
log_start (ptr_buffer); |
1083 |
|
else if (!cfg_log_auto_channel && ptr_buffer->log_file) |
1084 |
|
log_end (ptr_buffer); |
1085 |
|
} |
1086 |
|
if (BUFFER_IS_PRIVATE(ptr_buffer)) |
1087 |
|
{ |
1088 |
|
if (cfg_log_auto_private && !ptr_buffer->log_file) |
1089 |
|
log_start (ptr_buffer); |
1090 |
|
else if (!cfg_log_auto_private && ptr_buffer->log_file) |
1091 |
|
log_end (ptr_buffer); |
1092 |
|
} |
1093 |
|
} |
1094 |
|
} |
1095 |
|
|
1096 |
/* |
/* |
1097 |
* config_option_set_value: set new value for an option |
* config_option_set_value: set new value for an option |
1098 |
* return: 0 if success |
* return: 0 if success |