mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
More format warnings removed.
This commit is contained in:
parent
5c3ef84a0b
commit
a44c4b82de
3 changed files with 17 additions and 10 deletions
|
|
@ -326,8 +326,11 @@ static void autoconnect_servers(void)
|
|||
|
||||
if (autocon_server != NULL) {
|
||||
/* connect to specified server */
|
||||
str = g_strdup_printf(autocon_password == NULL ? "%s %d" : "%s %d %s",
|
||||
autocon_server, autocon_port, autocon_password);
|
||||
if (autocon_password == NULL)
|
||||
str = g_strdup_printf("%s %d", autocon_server, autocon_port);
|
||||
else
|
||||
str = g_strdup_printf("%s %d %s", autocon_server, autocon_port, autocon_password);
|
||||
|
||||
signal_emit("command connect", 1, str);
|
||||
g_free(str);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue