From fd91cba6d01d3162b94b6fd396d8f2fb4a77235c Mon Sep 17 00:00:00 2001 From: nohar Date: Sat, 27 Aug 2005 13:25:57 +0000 Subject: [PATCH] pretty sure kyo's bug is fixed now --- src/irc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/irc.c b/src/irc.c index 1baecfd..ffc72e4 100644 --- a/src/irc.c +++ b/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;