if(istrcmp(bot.current_nick, bot.nick)) break; xstrcpy(bot.current_nick, bot.altnick, 32);
if(istrcmp(bot.current_nick, bot.altnick)) { if(strlen(bot.altnick) >= MAX_NICKLEN-1) { make_error("No nicknames available."); clean_exit(1); } sprintf(bot.altnick, "%s_", bot.altnick); } xstrcpy(bot.current_nick, bot.altnick, MAX_NICKLEN);
unsigned int irc_parsenumeric(unsigned int numeric, char *raw) {    unsigned int r = 0;        switch(numeric) {        case 001:            irc_get_servname(bot.servname, raw);            irc_userhost(me->nick);            r = 1;            break;                    case 005:            irc_get_netname(bot.netname, raw);            r = 1;            break;                case 302:            r = irc_parse_302(raw);            if(!r)                make_warning("irc_parse_302 failed.");            break;                    case 303:            r = irc_parse_ison(raw);            if(!r)                make_warning("irc_parse_ison failed.");            break;                    case 324:            r = irc_parse_324(raw);            if(!r)                make_warning("irc_parse_324 failed.");            break;                    case 332:            r = irc_parse_332(raw);            if(!r)                make_warning("irc_parse_332 failed.");            break;                case 353:            r = irc_parse_353(raw);            if(!r)                make_warning("irc_parse_353 failed.");            break;                    case 367:            r = irc_parse_367(raw);            if(!r)                make_warning("irc_parse_367 failed.");            break;                    case 376:        case 422:            r = irc_start(2);            break;                case 433:            if(istrcmp(bot.current_nick, bot.nick)) break;            xstrcpy(bot.current_nick, bot.altnick, 32);            r = irc_nick(bot.altnick);            if(!r)                make_warning("irc_nick (433) failed.");            mynickison = 1;            mkthread(irc_fightfornick, NULL);            break;                case 451:            /* Start over. (got "Register First" message) */            r = irc_start(1);            break;                default:            r = 1;    }        return r;}