summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-07-19 17:35:51 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-07-19 17:35:51 +0000
commit1230735c5faf5445bd7583798a27bb8a17e6d743 (patch)
tree9ac39de08142655af9d9827dae06c4be424612ff /src/common
parent77d7b703dee1370c5312b8ea5d1f343a65dd8a9e (diff)
downloadweechat-1230735c5faf5445bd7583798a27bb8a17e6d743.zip
Added "irc_highlight" setting, fixed crash when doing /part on an active DCC chat buffer
Diffstat (limited to 'src/common')
-rw-r--r--src/common/weeconfig.c5
-rw-r--r--src/common/weeconfig.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c
index aefe60edb..334a8afac 100644
--- a/src/common/weeconfig.c
+++ b/src/common/weeconfig.c
@@ -517,6 +517,7 @@ int cfg_irc_lag_check;
int cfg_irc_lag_min_show;
int cfg_irc_lag_disconnect;
int cfg_irc_fifo_pipe;
+char *cfg_irc_highlight;
t_config_option weechat_options_irc[] =
{ { "irc_display_away", N_("display message to all channels when away"),
@@ -555,6 +556,10 @@ t_config_option weechat_options_irc[] =
N_("create a FIFO pipe for remote control"),
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE,
NULL, NULL, &cfg_irc_fifo_pipe, NULL, config_change_fifo_pipe },
+ { "irc_highlight", N_("list of words to highlight"),
+ N_("comma separated list of words to highlight (case sensitive comparison)"),
+ OPTION_TYPE_STRING, 0, 0, 0,
+ "", NULL, NULL, &cfg_irc_highlight, config_change_noop },
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL }
};
diff --git a/src/common/weeconfig.h b/src/common/weeconfig.h
index 244cf3bc9..18e4768b5 100644
--- a/src/common/weeconfig.h
+++ b/src/common/weeconfig.h
@@ -170,6 +170,7 @@ extern int cfg_irc_lag_check;
extern int cfg_irc_lag_min_show;
extern int cfg_irc_lag_disconnect;
extern int cfg_irc_fifo_pipe;
+extern char *cfg_irc_highlight;
extern int cfg_dcc_auto_accept_files;
extern int cfg_dcc_auto_accept_chats;