summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
authorMatti Virkkunen <mvirkkunen@gmail.com>2021-01-30 01:01:51 +0200
committerMatti Virkkunen <mvirkkunen@gmail.com>2021-01-30 01:01:51 +0200
commitbad6dc8a57acfc935425a5467659c553fadb5393 (patch)
tree43417ef94b0e5b70d5c903bfa8d4888a1579ca87 /src/plugins/irc/irc-command.c
parentdc8df133eac846cf68204d8f0f9dbe7acb47ac53 (diff)
downloadweechat-bad6dc8a57acfc935425a5467659c553fadb5393.zip
irc: make default chantypes configurable
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 89901e839..1f9deab60 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -5112,6 +5112,14 @@ irc_command_display_server (struct t_irc_server *server, int with_detail)
weechat_printf (NULL, " charset_message. . . : %s'%s'",
IRC_COLOR_CHAT_VALUE,
weechat_config_string (server->options[IRC_SERVER_OPTION_CHARSET_MESSAGE]));
+ /* chantypes */
+ if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_DEFAULT_CHANTYPES]))
+ weechat_printf (NULL, " chantypes. . . . . . : ('%s')",
+ IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_DEFAULT_CHANTYPES));
+ else
+ weechat_printf (NULL, " chantypes. . . . . . : %s'%s'",
+ IRC_COLOR_CHAT_VALUE,
+ weechat_config_string (server->options[IRC_SERVER_OPTION_DEFAULT_CHANTYPES]));
}
else
{