well, Eric, i tried something similar to what you did, but it still doesn't stop the error'd usernames from popping up, so i just found a way to 'ignore' the OTHER OStype > > >Eric >thrytis@imaxx.net > the code that follows would go in there, to ignore OTHER types. simple to add. ************************************************************** ident.c ident_check() with other variable definitions -------------------------------------------------------------- char OStype[256]; then right before the switch statement, *OStype = 0; &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ident.c ident_check() after the logerror() and else{ -------------------------------------------------------------- logerror("ident check read (read)"); else { buf[len] = '\0' . . . - if (sscanf(buf, "%u , %u : USERID :%*[^:]:%255s", - &rmt_port, &our_port, user) != 3) { /* check if error or malformed */ + if (sscanf(buf, "%u , %u : USERID :%[^:]:%255s", + &rmt_port, &our_port, OStype, user) != 4) { . . . sprintf(buf2, "Malformed ident response from %s: \"%s\"", d->host, buf); log(buf2); } } else { + if (strcmp(OStype, " OTHER ")) + { - strncpy(buf2, user, IDENT_LENGTH); + one_argument(user, buf); + strncpy(buf2, buf, IDENT_LENGTH); strcat(buf2, "@"); strcat(buf2, d->host); strncpy(d->host, buf2, HOST_LENGTH); + } } } STATE(d) = CON_ASKNAME; that's how i did to fix it :-) hope you it helps those with the Ident stuff, btw, the reason I have IDENT support is because one of my IMPs thinks it would be a lot handier. I personally do not like it, but I got sick of getting fubar'd usernames :-P if ya get ma drift... and whoever (Sammy was it?) sent the RFC info on Ident, thanks. It helped explain it, now i'm just gonna not worry about (although i DO log the OTHER Idents just in case :-) anyway, thanks for all who helped, and i hope this helps anyone else :-) Akuma the Raging Coder +------------------------------------------------------------+ | "The poets talk about love, but what I talk about is DOOM, | | because in the end, DOOM is all that counts." - | | Alex Machine/George Stark/Stephen King, The Dark Half | | "Nothing is IMPOSSIBLE, Just IMPROBABLE" | | "Easier Said Than Done, But Better Done Than Said..." | +------------------------------------------------------------+ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list-faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST