1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

irc_send_cmd_split() printed glib warning if nick parameter didn't exist.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2740 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-04-29 19:39:57 +00:00 committed by cras
parent 06127b4004
commit 91882b1a2b

View File

@ -199,7 +199,8 @@ void irc_send_cmd_split(IRC_SERVER_REC *server, const char *cmd,
}
count = 0;
g_string_truncate(nickstr, nickstr->len-1);
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);
g_string_truncate(nickstr, 0);