diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-12-11 13:43:34 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-12-11 13:43:34 +0100 |
commit | ab490e10c7acabeb0ed398f416e6ff37b1eb61b7 (patch) | |
tree | ea6406508f15a45d7b4b99d3f58904905acdc502 /src/plugins/irc/irc-protocol.c | |
parent | 50a50d033950a299cac8e44ce24c4fb969a38577 (diff) | |
download | weechat-ab490e10c7acabeb0ed398f416e6ff37b1eb61b7.zip |
irc: rename server option "umodes" to "usermode"
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 */ |