mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Fix warning.
This commit is contained in:
parent
1079ad46d2
commit
be977bf1b7
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue