Mercurial > pidgin
diff src/protocols/irc/msgs.c @ 10659:861ae6ee7b6c
[gaim-migrate @ 12192]
478: ban list full on HEAD
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sun, 06 Mar 2005 16:32:40 +0000 |
| parents | 43194088f3f7 |
| children | b41c48d890d8 |
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c Sun Mar 06 06:14:26 2005 +0000 +++ b/src/protocols/irc/msgs.c Sun Mar 06 16:32:40 2005 +0000 @@ -110,6 +110,27 @@ g_free(buf); } +void irc_msg_banfull(struct irc_conn *irc, const char *name, const char *from, char **args) +{ + GaimConversation *convo; + char *buf, *nick; + + if (!args || !args[0] || !args[1] || !args[2]) + return; + + convo = gaim_find_conversation_with_account(GAIM_CONV_CHAT, 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;
