diff options
author | dequis <dx@dxzone.com.ar> | 2015-03-19 15:05:17 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-04-11 15:20:31 -0300 |
commit | 002fede4370b9bf059049093a97e782e449705f4 (patch) | |
tree | 79e8d0f75d3b348ec92e37edfe2a47453bfb6f01 | |
parent | e59eec03bee8bb7df76f1a323f0f404754dff8ca (diff) |
msn: handle NOT command payload length
-rw-r--r-- | protocols/msn/ns.c | 4 |
1 files changed, 4 insertions, 0 deletions
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])) { |