diff options
author | Alexander Færøy <ahf@0x90.dk> | 2015-09-20 23:11:39 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2015-09-20 23:11:39 +0200 |
commit | a44c4b82de44af9aec59c542f3212795ecc52b57 (patch) | |
tree | 97efb04962b7936b0ab270aebfbaa72ad0a7f447 /src/fe-common | |
parent | 5c3ef84a0ba3cde0d9e2586fcb618d81851776f5 (diff) | |
download | irssi-a44c4b82de44af9aec59c542f3212795ecc52b57.zip |
More format warnings removed.
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index a475f056..341902df 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -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; |