From ab490e10c7acabeb0ed398f416e6ff37b1eb61b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 11 Dec 2016 13:43:34 +0100 Subject: irc: rename server option "umodes" to "usermode" --- src/plugins/irc/irc-protocol.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/irc/irc-protocol.c') diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index ba1f3eb85..d3ebf16c2 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -2453,7 +2453,7 @@ IRC_PROTOCOL_CALLBACK(wallops) IRC_PROTOCOL_CALLBACK(001) { char *server_command, **commands, **ptr_command, *vars_replaced, *away_msg; - const char *umodes; + const char *usermode; IRC_PROTOCOL_MIN_ARGS(3); @@ -2493,14 +2493,14 @@ IRC_PROTOCOL_CALLBACK(001) (void) weechat_hook_signal_send ("irc_server_connected", WEECHAT_HOOK_SIGNAL_STRING, server->name); - /* set umodes when connected */ - umodes = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_UMODES); - if (umodes && umodes[0]) + /* set usermode when connected */ + usermode = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_USERMODE); + if (usermode && usermode[0]) { irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL, "MODE %s %s", - server->nick, umodes); + server->nick, usermode); } /* execute command when connected */ -- cgit v1.2.3