diff libgaim/protocols/irc/irc.c @ 14542:8ed6ef220b2d

[gaim-migrate @ 17263] send_raw() prpl function allows plugins with knowledge of a protocol to send its own custom packets. Not practical for all protocols, but should be super useful on Jabber when coupled with Nathan's signals. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 12 Sep 2006 21:57:15 +0000
parents a5c7db7be826
children bf1f941575be
line wrap: on
line diff
--- a/libgaim/protocols/irc/irc.c	Tue Sep 12 20:11:56 2006 +0000
+++ b/libgaim/protocols/irc/irc.c	Tue Sep 12 21:57:15 2006 +0000
@@ -99,6 +99,12 @@
 	return ret;
 }
 
+static int irc_send_raw(GaimConnection *gc, const char *buf, int len)
+{
+	struct irc_conn *irc = (struct irc_conn*)gc->proto_data;
+	return do_send(irc, buf, len);
+}
+
 static void
 irc_send_cb(gpointer data, gint source, GaimInputCondition cond)
 {
@@ -860,6 +866,7 @@
 	irc_dccsend_new_xfer,	/* new_xfer */
 	NULL,					/* offline_message */
 	NULL,					/* whiteboard_prpl_ops */
+	irc_send_raw,				/* send_raw */
 };