1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

irc: rename server option "umodes" to "usermode"

This commit is contained in:
Sébastien Helleu
2016-12-11 13:43:34 +01:00
parent 50a50d0339
commit ab490e10c7
24 changed files with 155 additions and 42 deletions
+5 -5
View File
@@ -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 */