mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 07:02:12 +02:00
toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
820c9d3d82
commit
f4897860b5
35 changed files with 112 additions and 95 deletions
|
|
@ -342,7 +342,7 @@ static void botnet_connect_event_uplink(BOT_REC *bot, const char *data)
|
|||
/* nick already in use, change it by adding a number
|
||||
at the end of it */
|
||||
p = botnet->nick+strlen(botnet->nick);
|
||||
while (p > botnet->nick && isdigit(p[-1])) p--;
|
||||
while (p > botnet->nick && i_isdigit(p[-1])) p--;
|
||||
num = *p == '\0' ? 2 : atoi(p)+1; *p = '\0';
|
||||
str = g_strdup_printf("%s%d", botnet->nick, num);
|
||||
g_free(botnet->nick); botnet->nick = str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue