pretty sure kyo's bug is fixed now

This commit is contained in:
nohar 2005-08-27 13:25:57 +00:00
parent 339828202f
commit fd91cba6d0
1 changed files with 7 additions and 3 deletions

View File

@ -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;