mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Code Cleanup:
Use g_string_printf() instead of g_string_sprintf() (which is considered deprecated.) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5004 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c561ba35e6
commit
2fffcf5a77
12 changed files with 20 additions and 20 deletions
|
|
@ -576,7 +576,7 @@ static void sig_nicklist_new(CHANNEL_REC *channel, NICK_REC *nick)
|
|||
newnick = g_string_new(NULL);
|
||||
n = 2;
|
||||
do {
|
||||
g_string_sprintf(newnick, "%s%d", nickhost, n);
|
||||
g_string_printf(newnick, "%s%d", nickhost, n);
|
||||
n++;
|
||||
} while (printnick_exists(firstnick, nick, newnick->str));
|
||||
|
||||
|
|
|
|||
|
|
@ -187,10 +187,10 @@ static void bans_ask_channel(const char *channel, IRC_SERVER_REC *server,
|
|||
GString *str;
|
||||
|
||||
str = g_string_new(NULL);
|
||||
g_string_sprintf(str, "%s b", channel);
|
||||
g_string_printf(str, "%s b", channel);
|
||||
signal_emit("command mode", 3, str->str, server, item);
|
||||
if (server->emode_known) {
|
||||
g_string_sprintf(str, "%s e", channel);
|
||||
g_string_printf(str, "%s e", channel);
|
||||
signal_emit("command mode", 3, str->str, server, item);
|
||||
}
|
||||
g_string_free(str, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue