diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-10-08 19:57:04 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-10-08 19:57:04 +0200 |
commit | d82f8c81658a6a3294668136a0df0cd0e15641b9 (patch) | |
tree | 0faee3083577dd3729556e12424ad1701ba8e644 /src/plugins/irc/irc-config.c | |
parent | 4adbb8da1e036a769a60606ea6f4b0ec19ecffaf (diff) | |
download | weechat-d82f8c81658a6a3294668136a0df0cd0e15641b9.zip |
irc: add server option "default_msg_kick" to customize default kick/kickban message (task #12777) (patch from Nils Görs)
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r-- | src/plugins/irc/irc-config.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 7177d838e..66a877e76 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -1885,6 +1885,20 @@ irc_config_server_new_option (struct t_config_file *config_file, callback_change, callback_change_data, NULL, NULL); break; + case IRC_SERVER_OPTION_DEFAULT_MSG_KICK: + new_option = weechat_config_new_option ( + config_file, section, + option_name, "string", + N_("default kick message used by commands \"/kick\" and " + "\"/kickban\" (special variables $nick, $channel and $server " + "are replaced by their value)"), + NULL, 0, 0, + default_value, value, + null_value_allowed, + callback_check_value, callback_check_value_data, + callback_change, callback_change_data, + NULL, NULL); + break; case IRC_SERVER_OPTION_DEFAULT_MSG_PART: new_option = weechat_config_new_option ( config_file, section, |