From: Michael Poole Date: Mon, 21 Sep 2009 01:54:33 +0000 (-0400) Subject: Fix the account stamp parsing error reported in SF bug #2672922. X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=53b14f906a02b2dd6c611bb3da5e48aac8932791 Fix the account stamp parsing error reported in SF bug #2672922. src/proto-p10.c (mod_usermode): Update "word" to skip past account stamps. --- diff --git a/src/proto-p10.c b/src/proto-p10.c index c4e6696..9c8862b 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -2231,10 +2231,11 @@ void mod_usermode(struct userNode *user, const char *mode_change) { if (*word == ':') { ts = strtoul(word + 1, &sep, 10); if (*sep == ':') { - id = strtoul(word + 1, &sep, 10); + id = strtoul(sep + 1, &sep, 10); } else if (*sep != ' ' && *sep != '\0') { ts = 0; } + word = sep; } tag[ii] = '\0'; while (*word == ' ')