Mercurial > pidgin.yaz
changeset 10633:eac0f2b244c2
[gaim-migrate @ 12113]
Handle bad nick errors
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Wed, 23 Feb 2005 13:21:38 +0000 |
parents | cbd13a12d9be |
children | 483765e4a26c |
files | src/protocols/irc/irc.h src/protocols/irc/msgs.c src/protocols/irc/parse.c |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/irc/irc.h Wed Feb 23 04:50:03 2005 +0000 +++ b/src/protocols/irc/irc.h Wed Feb 23 13:21:38 2005 +0000 @@ -101,6 +101,7 @@ void irc_msg_default(struct irc_conn *irc, const char *name, const char *from, char **args); void irc_msg_away(struct irc_conn *irc, const char *name, const char *from, char **args); void irc_msg_badmode(struct irc_conn *irc, const char *name, const char *from, char **args); +void irc_msg_badnick(struct irc_conn *irc, const char *name, const char *from, char **args); void irc_msg_banned(struct irc_conn *irc, const char *name, const char *from, char **args); void irc_msg_chanmode(struct irc_conn *irc, const char *name, const char *from, char **args); void irc_msg_endwhois(struct irc_conn *irc, const char *name, const char *from, char **args);
--- a/src/protocols/irc/msgs.c Wed Feb 23 04:50:03 2005 +0000 +++ b/src/protocols/irc/msgs.c Wed Feb 23 13:21:38 2005 +0000 @@ -740,6 +740,12 @@ g_free(nick); } +void irc_msg_badnick(struct irc_conn *irc, const char *name, const char *from, char **args) +{ + gaim_connection_error(gaim_account_get_connection(irc->account), + _("Your selected account name was rejected by the server. It probably contains invalid characters.")); +} + void irc_msg_nickused(struct irc_conn *irc, const char *name, const char *from, char **args) { char *newnick, *buf, *end;
--- a/src/protocols/irc/parse.c Wed Feb 23 04:50:03 2005 +0000 +++ b/src/protocols/irc/parse.c Wed Feb 23 13:21:38 2005 +0000 @@ -77,6 +77,7 @@ { "404", "nt:", irc_msg_nosend }, /* Cannot send to chan */ { "421", "nv:", irc_msg_unknown }, /* Unknown command */ { "422", "nv:", irc_msg_endmotd }, /* No MOTD available */ + { "432", "vn:", irc_msg_badnick }, /* Erroneous nickname */ { "433", "vn:", irc_msg_nickused }, /* Nickname already in use */ { "438", "nn:", irc_msg_nochangenick }, /* Nick may not change */ { "442", "nc:", irc_msg_notinchan }, /* Not in channel */