diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-20 17:27:23 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-20 17:27:23 +0000 |
commit | e5a8118236442d51eb202a8bdebe5866449554e4 (patch) | |
tree | cf996127a7b235db035c4c5106f6bd8547c3503a /protocols/msn/sb.c | |
parent | 21029d0fe2b7b11512d2cc67495d590e9df53f85 (diff) |
Added soap.c with a fairly reusable SOAP framework and simple code for
sending offline messages. It works somewhat, just that Pidgin shows the
messages as empty. :-(
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r-- | protocols/msn/sb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c index e9526234..920e7f61 100644 --- a/protocols/msn/sb.c +++ b/protocols/msn/sb.c @@ -28,6 +28,7 @@ #include "msn.h" #include "passport.h" #include "md5.h" +#include "soap.h" static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond ); static int msn_sb_command( gpointer data, char **cmd, int num_parts ); @@ -605,6 +606,17 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts ) int num = atoi( cmd[0] ); const struct msn_status_code *err = msn_status_by_number( num ); + if( num == 217 ) + { + GSList *l; + + for( l = sb->msgq; l; l = l->next ) + { + struct msn_message *m = l->data; + msn_soap_oim_send( ic, m->who, m->text ); + } + } + imcb_error( ic, "Error reported by switchboard server: %s", err->text ); if( err->flags & STATUS_SB_FATAL ) |