diff options
author | Simmo Saan <simmo.saan@gmail.com> | 2016-10-12 21:38:49 +0300 |
---|---|---|
committer | Simmo Saan <simmo.saan@gmail.com> | 2016-10-12 21:38:49 +0300 |
commit | 03fbb4ffdc3e50e8ba2895960447b864c58d9136 (patch) | |
tree | 85e1803c3214dc5b9cdcccf5d0aa4ffede882935 /src/plugins/irc/irc-server.c | |
parent | c1b39ee5c22c06d37e1897585f3fae5322721686 (diff) | |
download | weechat-03fbb4ffdc3e50e8ba2895960447b864c58d9136.zip |
Add server option umodes (closes #377)
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r-- | src/plugins/irc/irc-server.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 0308bf06e..72a3a028e 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -116,6 +116,7 @@ char *irc_server_options[IRC_SERVER_NUM_OPTIONS][2] = { "msg_part", "WeeChat ${info:version}" }, { "msg_quit", "WeeChat ${info:version}" }, { "notify", "" }, + { "umodes", "" }, }; char *irc_server_casemapping_string[IRC_SERVER_NUM_CASEMAPPING] = @@ -5554,6 +5555,9 @@ irc_server_add_to_infolist (struct t_infolist *infolist, if (!weechat_infolist_new_var_string (ptr_item, "msg_quit", IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_MSG_QUIT))) return 0; + if (!weechat_infolist_new_var_string (ptr_item, "umodes", + IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_UMODES))) + return 0; if (!weechat_infolist_new_var_integer (ptr_item, "temp_server", server->temp_server)) return 0; if (!weechat_infolist_new_var_integer (ptr_item, "index_current_address", server->index_current_address)) @@ -5925,6 +5929,13 @@ irc_server_print_log () else weechat_log_printf (" msg_quit . . . . . . : '%s'", weechat_config_string (ptr_server->options[IRC_SERVER_OPTION_MSG_QUIT])); + /* umodes */ + if (weechat_config_option_is_null (ptr_server->options[IRC_SERVER_OPTION_UMODES])) + weechat_log_printf (" umodes . . . . . . . : null ('%s')", + IRC_SERVER_OPTION_STRING(ptr_server, IRC_SERVER_OPTION_UMODES)); + else + weechat_log_printf (" umodes . . . . . . . : '%s'", + weechat_config_string (ptr_server->options[IRC_SERVER_OPTION_UMODES])); /* other server variables */ weechat_log_printf (" temp_server. . . . . : %d", ptr_server->temp_server); weechat_log_printf (" reloading_from_config: %d", ptr_server->reloaded_from_config); |