mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +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
|
|
@ -215,11 +215,11 @@ static void server_rejoin_channels(IRC_SERVER_REC *server)
|
|||
}
|
||||
|
||||
rec->joining = TRUE;
|
||||
g_string_sprintfa(channels, "%s,", rec->channel);
|
||||
g_string_append_printf(channels, "%s,", rec->channel);
|
||||
if (rec->key == NULL)
|
||||
g_string_append(keys, "x,");
|
||||
else {
|
||||
g_string_sprintfa(keys, "%s,", rec->key);
|
||||
g_string_append_printf(keys, "%s,", rec->key);
|
||||
use_keys = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
@ -228,7 +228,7 @@ static void server_rejoin_channels(IRC_SERVER_REC *server)
|
|||
g_string_truncate(channels, channels->len-1);
|
||||
g_string_truncate(keys, keys->len-1);
|
||||
|
||||
if (use_keys) g_string_sprintfa(channels, " %s", keys->str);
|
||||
if (use_keys) g_string_append_printf(channels, " %s", keys->str);
|
||||
server->channels_join(SERVER(server), channels->str, TRUE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue