mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
core: fix some styles
This commit is contained in:
@@ -280,7 +280,7 @@ irc_bar_item_buffer_modes (const void *pointer, void *data,
|
||||
modes_without_args = NULL;
|
||||
if (!irc_config_display_channel_modes_arguments (channel->modes))
|
||||
{
|
||||
pos_space = strchr(channel->modes, ' ');
|
||||
pos_space = strchr (channel->modes, ' ');
|
||||
if (pos_space)
|
||||
{
|
||||
modes_without_args = weechat_strndup (
|
||||
|
||||
@@ -356,7 +356,7 @@ irc_channel_create_buffer (struct t_irc_server *server,
|
||||
}
|
||||
|
||||
/* set highlights settings on channel buffer */
|
||||
weechat_buffer_set(
|
||||
weechat_buffer_set (
|
||||
ptr_buffer,
|
||||
"highlight_words_add",
|
||||
(channel_type == IRC_CHANNEL_TYPE_CHANNEL) ?
|
||||
@@ -711,8 +711,8 @@ irc_channel_check_whox (struct t_irc_server *server,
|
||||
}
|
||||
else
|
||||
{
|
||||
irc_channel_remove_account(server, channel);
|
||||
irc_channel_remove_away(server, channel);
|
||||
irc_channel_remove_account (server, channel);
|
||||
irc_channel_remove_away (server, channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2954,7 +2954,7 @@ IRC_COMMAND_CALLBACK(list)
|
||||
REG_EXTENDED | REG_ICASE | REG_NOSUB)) != 0)
|
||||
{
|
||||
regerror (ret, ptr_server->cmd_list_regexp,
|
||||
buf, sizeof(buf));
|
||||
buf, sizeof (buf));
|
||||
weechat_printf (
|
||||
ptr_server->buffer,
|
||||
_("%s%s: \"%s\" is not a valid regular expression "
|
||||
|
||||
@@ -224,7 +224,7 @@ irc_config_compute_nick_colors ()
|
||||
}
|
||||
|
||||
/* if colors are displayed for nicks in nicklist, refresh them */
|
||||
if (weechat_config_boolean(irc_config_look_color_nicks_in_nicklist))
|
||||
if (weechat_config_boolean (irc_config_look_color_nicks_in_nicklist))
|
||||
irc_nick_nicklist_set_color_all ();
|
||||
}
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ irc_nick_get_color_for_nicklist (struct t_irc_server *server,
|
||||
if (nick->away)
|
||||
return nick_color_away;
|
||||
|
||||
if (weechat_config_boolean(irc_config_look_color_nicks_in_nicklist))
|
||||
if (weechat_config_boolean (irc_config_look_color_nicks_in_nicklist))
|
||||
{
|
||||
if (irc_server_strcasecmp (server, nick->name, server->nick) == 0)
|
||||
return nick_color_self;
|
||||
|
||||
@@ -508,7 +508,7 @@ IRC_PROTOCOL_CALLBACK(cap)
|
||||
snprintf (str_msg_auth, sizeof (str_msg_auth),
|
||||
"AUTHENTICATE %s",
|
||||
irc_sasl_mechanism_string[sasl_mechanism]);
|
||||
weechat_string_toupper(str_msg_auth);
|
||||
weechat_string_toupper (str_msg_auth);
|
||||
irc_server_sendf (server, 0, NULL, str_msg_auth);
|
||||
if (server->hook_timer_sasl)
|
||||
weechat_unhook (server->hook_timer_sasl);
|
||||
@@ -1348,7 +1348,7 @@ IRC_PROTOCOL_CALLBACK(nick)
|
||||
address),
|
||||
_("%s%s%s%s is now known as %s%s%s"),
|
||||
weechat_prefix ("network"),
|
||||
weechat_config_boolean(irc_config_look_color_nicks_in_server_messages) ?
|
||||
weechat_config_boolean (irc_config_look_color_nicks_in_server_messages) ?
|
||||
old_color : IRC_COLOR_CHAT_NICK,
|
||||
nick,
|
||||
IRC_COLOR_RESET,
|
||||
@@ -4502,7 +4502,7 @@ IRC_PROTOCOL_CALLBACK(354)
|
||||
date,
|
||||
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
|
||||
"%s%s[%s%s%s] %s%s %s%s%s%s%s%s(%s%s@%s%s)%s %s%s%s%s(%s)",
|
||||
weechat_prefix("network"),
|
||||
weechat_prefix ("network"),
|
||||
IRC_COLOR_CHAT_DELIMITERS,
|
||||
IRC_COLOR_CHAT_CHANNEL,
|
||||
argv[3],
|
||||
|
||||
@@ -686,7 +686,7 @@ irc_redirect_message_add (struct t_irc_redirect *redirect, const char *message,
|
||||
/* add message to output */
|
||||
if (redirect->output)
|
||||
{
|
||||
redirect->output_size += strlen("\n") + strlen (message);
|
||||
redirect->output_size += strlen ("\n") + strlen (message);
|
||||
output2 = realloc (redirect->output, redirect->output_size);
|
||||
if (!output2)
|
||||
{
|
||||
|
||||
@@ -493,7 +493,7 @@ irc_sasl_mechanism_dh_blowfish (const char *data_base64,
|
||||
length_answer = 2 + length_key + length_username + length_password;
|
||||
answer = malloc (length_answer);
|
||||
ptr_answer = answer;
|
||||
*((unsigned int *)ptr_answer) = htons(length_key);
|
||||
*((unsigned int *)ptr_answer) = htons (length_key);
|
||||
ptr_answer += 2;
|
||||
memcpy (ptr_answer, public_bin, length_key);
|
||||
ptr_answer += length_key;
|
||||
@@ -554,7 +554,7 @@ irc_sasl_mechanism_dh_aes (const char *data_base64,
|
||||
secret_bin = NULL;
|
||||
public_bin = NULL;
|
||||
|
||||
if (irc_sasl_dh(data_base64, &public_bin, &secret_bin, &length_key) == 0)
|
||||
if (irc_sasl_dh (data_base64, &public_bin, &secret_bin, &length_key) == 0)
|
||||
goto aesend;
|
||||
|
||||
/* Select cipher algorithm: key length * 8 = cipher bit size */
|
||||
@@ -596,7 +596,7 @@ irc_sasl_mechanism_dh_aes (const char *data_base64,
|
||||
goto aesend;
|
||||
if (gcry_cipher_setkey (gcrypt_handle, secret_bin, length_key) != 0)
|
||||
goto aesend;
|
||||
if (gcry_cipher_setiv (gcrypt_handle, iv, sizeof(iv)) != 0)
|
||||
if (gcry_cipher_setiv (gcrypt_handle, iv, sizeof (iv)) != 0)
|
||||
goto aesend;
|
||||
if (gcry_cipher_encrypt (gcrypt_handle,
|
||||
userpass_crypted, length_userpass,
|
||||
@@ -615,7 +615,7 @@ irc_sasl_mechanism_dh_aes (const char *data_base64,
|
||||
length_answer = 2 + length_key + sizeof (iv) + length_userpass;
|
||||
answer = malloc (length_answer);
|
||||
ptr_answer = answer;
|
||||
*((unsigned int *)ptr_answer) = htons(length_key);
|
||||
*((unsigned int *)ptr_answer) = htons (length_key);
|
||||
ptr_answer += 2;
|
||||
memcpy (ptr_answer, public_bin, length_key);
|
||||
ptr_answer += length_key;
|
||||
|
||||
Reference in New Issue
Block a user