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/irc/core/modes.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/irc/core/modes.c')
-rw-r--r-- | src/irc/core/modes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 17464a16..38b457a2 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -577,7 +577,7 @@ void channel_set_singlemode(IRC_CHANNEL_REC *channel, const char *nicks, g_string_insert(str, modepos, mode); } - g_string_sprintfa(str, " %s", *nick); + g_string_append_printf(str, " %s", *nick); if (++num == channel->server->max_modes_in_cmd) { /* max. modes / command reached, send to server */ @@ -659,7 +659,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel, } if (*arg != '\0') - g_string_sprintfa(targs, " %s", arg); + g_string_append_printf(targs, " %s", arg); } } @@ -695,7 +695,7 @@ static int get_wildcard_nicks(GString *output, const char *mask, if (g_strcasecmp(rec->nick, channel->server->nick) == 0) continue; - g_string_sprintfa(output, "%s ", rec->nick); + g_string_append_printf(output, "%s ", rec->nick); count++; } g_slist_free(nicks); @@ -734,7 +734,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item, if (strchr(*match, '*') == NULL && strchr(*match, '?') == NULL) { /* no wildcards */ - g_string_sprintfa(str, "%s ", *match); + g_string_append_printf(str, "%s ", *match); } else { count = get_wildcard_nicks(str, *match, channel, op, voice); |