aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-12-22 01:14:26 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2012-12-22 01:14:26 +0100
commitcc6fdf8fe5a044db58ed74e69673cf4270080d45 (patch)
treed58edb70d76e84bf24016fccf9cd27764ea7ae4c /protocols/msn
parent92d30446251591a6805168f51a4b07ff65b3cc24 (diff)
parent573e274c58bf7d154b35ab5cd9d0b711f7ede715 (diff)
Merging JSON branch. It's very stable by now, and I want more testers.
Diffstat (limited to 'protocols/msn')
-rw-r--r--protocols/msn/msn.c1
-rw-r--r--protocols/msn/ns.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index 71570ce0..845f9cf8 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -52,6 +52,7 @@ static void msn_login( account_t *acc )
struct msn_data *md = g_new0( struct msn_data, 1 );
ic->proto_data = md;
+ ic->flags |= OPT_PONGS | OPT_PONGED;
if( strchr( acc->user, '@' ) == NULL )
{
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c
index d9a558f9..7acf4654 100644
--- a/protocols/msn/ns.c
+++ b/protocols/msn/ns.c
@@ -576,6 +576,10 @@ static int msn_ns_command( struct msn_handler_data *handler, char **cmd, int num
if( num_parts >= 7 )
handler->msglen = atoi( cmd[6] );
}
+ else if( strcmp( cmd[0], "QNG" ) == 0 )
+ {
+ ic->flags |= OPT_PONGED;
+ }
else if( isdigit( cmd[0][0] ) )
{
int num = atoi( cmd[0] );