--- include/struct.h Sat Jul 3 19:04:17 2004 +++ include/struct.h Mon Aug 9 19:31:36 2004 @@ -1602,7 +1602,13 @@ #define BadPtr(x) (!(x) || (*(x) == '\0')) +#ifndef RUSSIAN_IRCD #define isvalid(c) (((c) >= 'A' && (c) <= '~') || isdigit(c) || (c) == '-') +#else +#define isvalid(c) (((c) >= 'A' && (c) <= '~') || isdigit(c) || (c) == '-' || \ + ((u_char)(c) >= 0xc0 && (u_char)(c) <= 0xff) || \ + (u_char)(c) == 0xa8 || (u_char)(c) == 0xb8) +#endif /* remote fds are set to -256, else its a local fd (a local fd * can get -1 or -2 in case it has been closed). -- Syzop