mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fix formatting warnings.
This commit is contained in:
parent
9cf4dfd23d
commit
6c9dcffb5e
@ -170,8 +170,11 @@ static void cmd_part(const char *data, IRC_SERVER_REC *server,
|
||||
|
||||
if (*msg != '\0')
|
||||
recoded = recode_out(SERVER(server), msg, channame);
|
||||
irc_send_cmdv(server, ! recoded ? "PART %s" : "PART %s :%s",
|
||||
channame, recoded);
|
||||
|
||||
if (recoded == NULL)
|
||||
irc_send_cmdv(server, "PART %s", channame);
|
||||
else
|
||||
irc_send_cmdv(server, "PART %s :%s", channame, recoded);
|
||||
|
||||
g_free(recoded);
|
||||
cmd_params_free(free_arg);
|
||||
@ -219,8 +222,12 @@ static void cmd_topic(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *ite
|
||||
|
||||
if (*topic != '\0' || g_hash_table_lookup(optlist, "delete") != NULL)
|
||||
recoded = recode_out(SERVER(server), topic, channame);
|
||||
irc_send_cmdv(server, recoded == NULL ? "TOPIC %s" : "TOPIC %s :%s",
|
||||
channame, recoded);
|
||||
|
||||
if (recoded == NULL)
|
||||
irc_send_cmdv(server, "TOPIC %s", channame);
|
||||
else
|
||||
irc_send_cmdv(server, "TOPIC %s :%s", channame, recoded);
|
||||
|
||||
g_free(recoded);
|
||||
|
||||
cmd_params_free(free_arg);
|
||||
@ -295,8 +302,11 @@ static void cmd_who(const char *data, IRC_SERVER_REC *server,
|
||||
*channel = '\0';
|
||||
}
|
||||
|
||||
irc_send_cmdv(server, *rest == '\0' ? "WHO %s" : "WHO %s %s",
|
||||
channel, rest);
|
||||
if (rest[0] == '\0')
|
||||
irc_send_cmdv(server, "WHO %s", channel);
|
||||
else
|
||||
irc_send_cmdv(server, "WHO %s %s", channel, rest);
|
||||
|
||||
cmd_params_free(free_arg);
|
||||
}
|
||||
|
||||
@ -502,8 +512,11 @@ static void cmd_whowas(const char *data, IRC_SERVER_REC *server)
|
||||
if (free_nick) g_free(nicks_redir);
|
||||
|
||||
server->whowas_found = FALSE;
|
||||
irc_send_cmdv(server, *rest == '\0' ? "WHOWAS %s" :
|
||||
"WHOWAS %s %s", nicks, rest);
|
||||
|
||||
if (rest[0] == '\0')
|
||||
irc_send_cmdv(server, "WHOWAS %s", nicks);
|
||||
else
|
||||
irc_send_cmdv(server, "WHOWAS %s %s", nicks, rest);
|
||||
|
||||
cmd_params_free(free_arg);
|
||||
}
|
||||
@ -915,7 +928,10 @@ static void command_self(const char *data, IRC_SERVER_REC *server)
|
||||
{
|
||||
CMD_IRC_SERVER(server);
|
||||
|
||||
irc_send_cmdv(server, *data == '\0' ? "%s" : "%s %s", current_command, data);
|
||||
if (data[0] == '\0')
|
||||
irc_send_cmdv(server, "%s", current_command);
|
||||
else
|
||||
irc_send_cmdv(server, "%s %s", current_command, data);
|
||||
}
|
||||
|
||||
static void command_1self(const char *data, IRC_SERVER_REC *server)
|
||||
|
Loading…
Reference in New Issue
Block a user