diff options
author | Alexander Færøy <ahf@irssi.org> | 2009-02-08 17:22:42 +0000 |
---|---|---|
committer | ahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2009-02-08 17:22:42 +0000 |
commit | c561ba35e6aa382124147e88f45683c0021db02f (patch) | |
tree | a0ec48e7655295c69662a9edd396038951527e92 /src/fe-common/core/fe-channels.c | |
parent | 32e01a5a06e35c98c478413fb6c86818dd930ff3 (diff) | |
download | irssi-c561ba35e6aa382124147e88f45683c0021db02f.zip |
Code Cleanup:
Use g_string_append_printf() instead of g_string_sprintfa() (which is considered deprecated.)
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5003 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-channels.c')
-rw-r--r-- | src/fe-common/core/fe-channels.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c index cc6f200f..061d68ca 100644 --- a/src/fe-common/core/fe-channels.c +++ b/src/fe-common/core/fe-channels.c @@ -207,7 +207,7 @@ static void cmd_channel_list_joined(void) for (ntmp = nicklist; ntmp != NULL; ntmp = ntmp->next) { NICK_REC *rec = ntmp->data; - g_string_sprintfa(nicks, "%s ", rec->nick); + g_string_append_printf(nicks, "%s ", rec->nick); } if (nicks->len > 1) g_string_truncate(nicks, nicks->len-1); @@ -235,9 +235,9 @@ static void cmd_channel_list(void) if (rec->autojoin) g_string_append(str, "autojoin, "); if (rec->botmasks != NULL && *rec->botmasks != '\0') - g_string_sprintfa(str, "bots: %s, ", rec->botmasks); + g_string_append_printf(str, "bots: %s, ", rec->botmasks); if (rec->autosendcmd != NULL && *rec->autosendcmd != '\0') - g_string_sprintfa(str, "botcmd: %s, ", rec->autosendcmd); + g_string_append_printf(str, "botcmd: %s, ", rec->autosendcmd); if (str->len > 2) g_string_truncate(str, str->len-2); printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_CHANSETUP_LINE, @@ -564,7 +564,7 @@ static void cmd_names(const char *data, SERVER_REC *server, WI_ITEM_REC *item) for (tmp = channels; *tmp != NULL; tmp++) { chanrec = channel_find(server, *tmp); if (chanrec == NULL) - g_string_sprintfa(unknowns, "%s,", *tmp); + g_string_append_printf(unknowns, "%s,", *tmp); else { fe_channels_nicklist(chanrec, flags); signal_stop(); |