1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Fix warning.

This commit is contained in:
Alexander Færøy 2015-09-20 21:21:40 +02:00
parent 1079ad46d2
commit be977bf1b7
No known key found for this signature in database
GPG Key ID: E15081D5D3C3DB53

View File

@ -212,8 +212,12 @@ void irc_send_cmd_split(IRC_SERVER_REC *server, const char *cmd,
count = 0;
if (nickstr->len > 0)
g_string_truncate(nickstr, nickstr->len-1);
irc_send_cmdv(server, post == NULL ? "%s %s" : "%s %s %s",
pre, nickstr->str, post);
if (post == NULL)
irc_send_cmdv(server, "%s %s", pre, nickstr->str);
else
irc_send_cmdv(server, "%s %s %s", pre, nickstr->str, post);
g_string_truncate(nickstr, 0);
if (*tmp == NULL || tmp[1] == NULL)