From: Ethan B. <ebl...@us...> - 2005-03-01 04:01:08
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4022/src/protocols/irc Modified Files: Tag: oldstatus irc.h msgs.c parse.c Log Message: 478: ban list full Index: irc.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.h,v retrieving revision 1.14.2.3 retrieving revision 1.14.2.4 diff -u -d -p -r1.14.2.3 -r1.14.2.4 --- irc.h 23 Feb 2005 04:42:11 -0000 1.14.2.3 +++ irc.h 1 Mar 2005 04:00:58 -0000 1.14.2.4 @@ -99,6 +99,7 @@ void irc_msg_default(struct irc_conn *ir 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_banfull(struct irc_conn *irc, const char *name, const char *from, const 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); Index: msgs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/msgs.c,v retrieving revision 1.39.2.6 retrieving revision 1.39.2.7 diff -u -d -p -r1.39.2.6 -r1.39.2.7 --- msgs.c 23 Feb 2005 04:42:11 -0000 1.39.2.6 +++ msgs.c 1 Mar 2005 04:00:58 -0000 1.39.2.7 @@ -110,6 +110,27 @@ void irc_msg_banned(struct irc_conn *irc g_free(buf); } +void irc_msg_banfull(struct irc_conn *irc, const char *name, const char *from, const char **args) +{ + GaimConversation *convo; + char *buf, *nick; + + if (!args || !args[0] || !args[1] || !args[2]) + return; + + convo = gaim_find_conversation_with_account(args[1], irc->account); + if (!convo) + return; + + nick = g_markup_escape_text(args[2], -1); + buf = g_strdup_printf(_("Cannot ban %s: banlist is full"), nick); + g_free(nick); + gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", buf, + GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, + time(NULL)); + g_free(buf); +} + void irc_msg_chanmode(struct irc_conn *irc, const char *name, const char *from, char **args) { GaimConversation *convo; Index: parse.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/parse.c,v retrieving revision 1.25.2.8 retrieving revision 1.25.2.9 diff -u -d -p -r1.25.2.8 -r1.25.2.9 --- parse.c 23 Feb 2005 04:42:11 -0000 1.25.2.8 +++ parse.c 1 Mar 2005 04:00:58 -0000 1.25.2.9 @@ -83,6 +83,7 @@ static struct _irc_msg { { "442", "nc:", irc_msg_notinchan }, /* Not in channel */ { "473", "nc:", irc_msg_inviteonly }, /* Tried to join invite-only */ { "474", "nc:", irc_msg_banned }, /* Banned from channel */ + { "478", "nct:", irc_msg_banfull }, /* Banlist is full */ { "482", "nc:", irc_msg_notop }, /* Need to be op to do that */ { "501", "n:", irc_msg_badmode }, /* Unknown mode flag */ { "506", "nc:", irc_msg_nosend }, /* Must identify to send */ |