pretty sure kyo's bug is fixed now
This commit is contained in:
parent
339828202f
commit
fd91cba6d0
10
src/irc.c
10
src/irc.c
@ -79,10 +79,14 @@ static char *make_irc_mask(char *nick, char *oldim)
|
||||
{
|
||||
char *nm;
|
||||
char *imaskend = oldim;
|
||||
while (*imaskend && *imaskend != '!')
|
||||
imaskend++;
|
||||
if (*imaskend == '\0')
|
||||
if (!imaskend) {
|
||||
imaskend = "!bip@bip.bip.bip";
|
||||
} else {
|
||||
while (*imaskend && *imaskend != '!')
|
||||
imaskend++;
|
||||
if (*imaskend == '\0')
|
||||
imaskend = "!bip@bip.bip.bip";
|
||||
}
|
||||
|
||||
nm = malloc(strlen(nick) + strlen(imaskend) + 1);
|
||||
*nm = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user