mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +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
|
|
@ -71,7 +71,7 @@ static void print_notify_onserver(IRC_SERVER_REC *server, GSList *nicks,
|
|||
if (!notifylist_ison_server(server, nick))
|
||||
continue;
|
||||
|
||||
g_string_sprintfa(str, "%s, ", nick);
|
||||
g_string_append_printf(str, "%s, ", nick);
|
||||
*offline = g_slist_remove(*offline, nick);
|
||||
}
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ static void cmd_notify_show(void)
|
|||
|
||||
str = g_string_new(NULL);
|
||||
for (tmp = offline; tmp != NULL; tmp = tmp->next)
|
||||
g_string_sprintfa(str, "%s, ", (char *) tmp->data);
|
||||
g_string_append_printf(str, "%s, ", (char *) tmp->data);
|
||||
|
||||
g_string_truncate(str, str->len-2);
|
||||
printformat(NULL,NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NOTIFY_OFFLINE, str->str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue