diff src/protocols/irc/msgs.c @ 6714:0c260c4e753e

[gaim-migrate @ 7240] 515: not identified committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Tue, 02 Sep 2003 23:35:08 +0000
parents 0c5637b5462e
children 37af5dea14d1
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Tue Sep 02 23:34:08 2003 +0000
+++ b/src/protocols/irc/msgs.c	Tue Sep 02 23:35:08 2003 +0000
@@ -766,6 +766,19 @@
 	g_free(nick);
 }
 
+void irc_msg_regonly(struct irc_conn *irc, const char *name, const char *from, char **args)
+{
+	GaimConnection *gc = gaim_account_get_connection(irc->account);
+	char *msg;
+
+	if (!args || !args[1] || !args[2] || !gc)
+		return;
+
+	msg = g_strdup_printf(_("Cannot join %s:"), args[1]);
+	gaim_notify_error(gc, _("Cannot join channel"), msg, args[2]);
+	g_free(msg);
+}
+
 void irc_msg_quit(struct irc_conn *irc, const char *name, const char *from, char **args)
 {
 	GaimConnection *gc = gaim_account_get_connection(irc->account);