diff src/protocols/irc/msgs.c @ 10712:b41c48d890d8

[gaim-migrate @ 12306] sf patch #1153243, from Richard Laager Implement IRC Response #437, "Nick or channel is temporarily unavailable." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Mar 2005 03:37:59 +0000
parents 861ae6ee7b6c
children e84b1ef01905
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Mon Mar 21 02:14:46 2005 +0000
+++ b/src/protocols/irc/msgs.c	Mon Mar 21 03:37:59 2005 +0000
@@ -977,6 +977,16 @@
 	return;
 }
 
+void irc_msg_unavailable(struct irc_conn *irc, const char *name, const char *from, char **args)
+{
+	GaimConnection *gc = gaim_account_get_connection(irc->account);
+
+	if (!args || !args[1])
+		return;
+
+	gaim_notify_error(gc, NULL, _("Nick or channel is temporarily unavailable."), args[1]);
+}
+
 void irc_msg_wallops(struct irc_conn *irc, const char *name, const char *from, char **args)
 {
 	GaimConnection *gc = gaim_account_get_connection(irc->account);