From 002fede4370b9bf059049093a97e782e449705f4 Mon Sep 17 00:00:00 2001 From: dequis Date: Thu, 19 Mar 2015 15:05:17 -0300 Subject: msn: handle NOT command payload length --- protocols/msn/ns.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols') diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 611c96e0..640f73c1 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -335,6 +335,10 @@ int msn_ns_command(struct msn_data *handler, char **cmd, int num_parts) if (num_parts >= 4) { handler->msglen = atoi(cmd[3]); } + } else if (strcmp(cmd[0], "NOT") == 0) { + if (num_parts >= 2) { + handler->msglen = atoi(cmd[1]); + } } else if (strcmp(cmd[0], "QNG") == 0) { ic->flags |= OPT_PONGED; } else if (g_ascii_isdigit(cmd[0][0])) { -- cgit v1.2.3