# HG changeset patch # User Elliott Sales de Andrade # Date 1215924939 0 # Node ID 9688908af52defe3fd9627e73e92663dd26d1e68 # Parent 4162ac08c775f219c8a71257e3b5d840cdf7c3de Workaround a bug in MSN servers where it sends an extra space at the end of the ILN command. Also used g_strsplit_set so it doesn't accidentally drop command parameters when there are double spaces. Fixes #6302. diff -r 4162ac08c775 -r 9688908af52d libpurple/protocols/msn/command.c --- a/libpurple/protocols/msn/command.c Sun Jul 13 04:48:05 2008 +0000 +++ b/libpurple/protocols/msn/command.c Sun Jul 13 04:55:39 2008 +0000 @@ -51,14 +51,14 @@ if (param_start) { *param_start++ = '\0'; - cmd->params = g_strsplit(param_start, " ", 0); + cmd->params = g_strsplit_set(param_start, " ", 0); } if (cmd->params != NULL) { int c; - for (c = 0; cmd->params[c]; c++); + for (c = 0; cmd->params[c] && cmd->params[c][0]; c++); cmd->param_count = c; if (cmd->param_count) {