[IRC-DEV] Nicks en uso y registrados

Óscar García red_star23 at yahoo.es
Fri Aug 23 22:31:04 CEST 2002


> /* 431 */
> {ERR_NONICKNAMEGIVEN, ":No nickname given"},
> /* 432 */
> {ERR_INVALIDNICKNAME, "%s :Invalid Nickname"},
> /* 433 */
> #ifdef BDD
> {ERR_NICKNAMEINUSE, "%s :Nickname is already in use
> or registered "
> "(missing or wrong password)"},
> #else
> {ERR_NICKNAMEINUSE, "%s :Nickname is already in
> use"},
> /* 436 */
> {ERR_NICKCOLLISION, "%s :Nickname collision KILL"},
> 
> 
> Extraido de s_err.c
> 
> No hay ERR_ERRONEUSNICKNAME
> 
> Segun el RFC... ¿Esta el ircd rompiendo el
> protocolo? :?

Extraido de la RFC (perdona que no te haya pegado toda
entera):

------------------------------------------------------
432     ERR_ERRONEUSNICKNAME
"<nick> :Erroneus nickname"
- Returned after receiving a NICK message which
contains characters which do not fall in the defined
set.  See section x.x.x for details on valid
nicknames.
------------------------------------------------------

Extraido del s_err.c igualmente:

------------------------------------------------------
/* 431 */
    {ERR_NONICKNAMEGIVEN, ":No nickname given"},
/* 432 */
    {ERR_ERRONEUSNICKNAME, "%s :Erroneus Nickname"},
/* 433 */
#ifdef BDD
    {ERR_NICKNAMEINUSE, "%s :Nickname is already in
use or registered "
                        "(missing or wrong
password)"},
#else
    {ERR_NICKNAMEINUSE, "%s :Nickname is already in
use."},
#endif
------------------------------------------------------

Los #defines pueden cambiar, podemos llamar
ERR_ERRPQKIERO al numeric 432 por ejemplo, no te fies
nunca porque en un documento ponga una serie de letras
que no coincidan con el código de una implementación,
fíate del valor... del numeric real.

Por cierto, ¿de que ircd sacaste ese trozo de código?
Nunca es recomendable cambiar los nombres de los
defines o variables para evitar este tipo de
distracciones durante el desarrollo de un software.

Un saludo.


--------------------------------------------------------------------------------
Remember: Un*x _IS_ user friendly... It's just
selective about who it's friends are
http://redstar.linaresdigital.com/


_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es



More information about the IRC-Dev mailing list