mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
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
This commit is contained in:
parent
32e01a5a06
commit
c561ba35e6
30 changed files with 86 additions and 86 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue