mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
Remove evil tabs in sources
This commit is contained in:
@@ -1912,43 +1912,43 @@ irc_command_list (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
|
||||
if (ptr_server->cmd_list_regexp)
|
||||
{
|
||||
regfree (ptr_server->cmd_list_regexp);
|
||||
free (ptr_server->cmd_list_regexp);
|
||||
ptr_server->cmd_list_regexp = NULL;
|
||||
regfree (ptr_server->cmd_list_regexp);
|
||||
free (ptr_server->cmd_list_regexp);
|
||||
ptr_server->cmd_list_regexp = NULL;
|
||||
}
|
||||
|
||||
if (argc > 1)
|
||||
{
|
||||
ptr_server->cmd_list_regexp = malloc (sizeof (*ptr_server->cmd_list_regexp));
|
||||
if (ptr_server->cmd_list_regexp)
|
||||
{
|
||||
if ((ret = regcomp (ptr_server->cmd_list_regexp,
|
||||
ptr_server->cmd_list_regexp = malloc (sizeof (*ptr_server->cmd_list_regexp));
|
||||
if (ptr_server->cmd_list_regexp)
|
||||
{
|
||||
if ((ret = regcomp (ptr_server->cmd_list_regexp,
|
||||
argv_eol[1],
|
||||
REG_NOSUB | REG_ICASE)) != 0)
|
||||
{
|
||||
regerror (ret, ptr_server->cmd_list_regexp,
|
||||
{
|
||||
regerror (ret, ptr_server->cmd_list_regexp,
|
||||
buf, sizeof(buf));
|
||||
weechat_printf (ptr_server->buffer,
|
||||
weechat_printf (ptr_server->buffer,
|
||||
_("%s%s: \"%s\" is not a valid regular "
|
||||
"expression (%s)"),
|
||||
weechat_prefix ("error"), IRC_PLUGIN_NAME,
|
||||
argv_eol, buf);
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
else
|
||||
irc_server_sendf (ptr_server, 0, "LIST");
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (ptr_server->buffer,
|
||||
}
|
||||
else
|
||||
irc_server_sendf (ptr_server, 0, "LIST");
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (ptr_server->buffer,
|
||||
_("%s%s: not enough memory for regular "
|
||||
"expression"),
|
||||
weechat_prefix ("error"), IRC_PLUGIN_NAME);
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
irc_server_sendf (ptr_server, 0, "LIST");
|
||||
irc_server_sendf (ptr_server, 0, "LIST");
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ irc_ignore_free (struct t_irc_ignore *ignore)
|
||||
if (ignore->regex_mask)
|
||||
{
|
||||
regfree (ignore->regex_mask);
|
||||
free (ignore->regex_mask);
|
||||
free (ignore->regex_mask);
|
||||
}
|
||||
if (ignore->server)
|
||||
free (ignore->server);
|
||||
|
||||
@@ -1595,11 +1595,11 @@ irc_protocol_cmd_001 (struct t_irc_server *server, const char *command,
|
||||
ptr_command = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_COMMAND);
|
||||
if (ptr_command && ptr_command[0])
|
||||
{
|
||||
/* splitting command on ';' which can be escaped with '\;' */
|
||||
commands = weechat_string_split_command (ptr_command, ';');
|
||||
if (commands)
|
||||
{
|
||||
for (ptr_cmd = commands; *ptr_cmd; ptr_cmd++)
|
||||
/* splitting command on ';' which can be escaped with '\;' */
|
||||
commands = weechat_string_split_command (ptr_command, ';');
|
||||
if (commands)
|
||||
{
|
||||
for (ptr_cmd = commands; *ptr_cmd; ptr_cmd++)
|
||||
{
|
||||
vars_replaced = irc_protocol_replace_vars (server, NULL,
|
||||
*ptr_cmd);
|
||||
@@ -1608,10 +1608,10 @@ irc_protocol_cmd_001 (struct t_irc_server *server, const char *command,
|
||||
if (vars_replaced)
|
||||
free (vars_replaced);
|
||||
}
|
||||
weechat_string_free_split_command (commands);
|
||||
}
|
||||
|
||||
if (IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_COMMAND_DELAY) > 0)
|
||||
weechat_string_free_split_command (commands);
|
||||
}
|
||||
|
||||
if (IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_COMMAND_DELAY) > 0)
|
||||
server->command_time = time (NULL) + 1;
|
||||
else
|
||||
irc_server_autojoin_channels (server);
|
||||
|
||||
Reference in New Issue
Block a user