diff libgaim/protocols/msn/msn.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 8bc34ef93e55
children ad44ab4442b1
line wrap: on
line diff
--- a/libgaim/protocols/msn/msn.c	Tue Sep 12 20:11:56 2006 +0000
+++ b/libgaim/protocols/msn/msn.c	Tue Sep 12 21:57:15 2006 +0000
@@ -881,6 +881,14 @@
 	return MSN_TYPING_SEND_TIMEOUT;
 }
 
+static int 
+msn_send_raw(GaimConnection *gc, const char *buf, int len)
+{
+	MsnServConn *servconn = (MsnServConn*)gc->proto_data;
+	return msn_servconn_write(servconn, buf, len);
+}
+	
+
 static void
 msn_set_status(GaimAccount *account, GaimStatus *status)
 {
@@ -2012,6 +2020,7 @@
 	msn_new_xfer,			/* new_xfer */
 	NULL,					/* offline_message */
 	NULL,					/* whiteboard_prpl_ops */
+	msn_send_raw,				/* send_raw */
 };
 
 static GaimPluginInfo info =