diff libgaim/protocols/irc/parse.c @ 14621:bf1f941575be

[gaim-migrate @ 17350] IRC signals for scripting IRC. Richard, you should use these for irchelper! committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 25 Sep 2006 21:08:39 +0000
parents a5c7db7be826
children bad6e64c6405
line wrap: on
line diff
--- a/libgaim/protocols/irc/parse.c	Mon Sep 25 07:31:48 2006 +0000
+++ b/libgaim/protocols/irc/parse.c	Mon Sep 25 21:08:39 2006 +0000
@@ -44,6 +44,8 @@
 		"orange", "yellow", "green", "teal", "cyan", "light blue",
 		"pink", "grey", "light grey" };
 
+extern GaimPlugin *_irc_plugin;
+
 /*typedef void (*IRCMsgCallback)(struct irc_conn *irc, char *from, char *name, char **args);*/
 static struct _irc_msg {
 	char *name;
@@ -534,7 +536,8 @@
 	guint i;
 
 	irc->recv_time = time(NULL);
-
+	gaim_signal_emit(_irc_plugin, "irc-receiving-text", gaim_account_get_connection(irc->account), &input);
+	
 	if (!strncmp(input, "PING ", 5)) {
 		msg = irc_format(irc, "vv", "PONG", input + 5);
 		irc_send(irc, msg);