From: Michael Poole Date: Sun, 14 Mar 2010 22:51:52 +0000 (-0400) Subject: Fix parsing of (P10) MODE + . X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=3f004cf3ea3881c4e0bd2f183cf7a39fbd5f0b73 Fix parsing of (P10) MODE + . src/proto-p10.c (cmd_mode): Unsplit the mode and any trailing arguments. --- diff --git a/src/proto-p10.c b/src/proto-p10.c index 638913a..6509fab 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -1359,6 +1359,7 @@ static CMD_FUNC(cmd_mode) log_module(MAIN_LOG, LOG_ERROR, "Unable to find user %s whose mode is changing.", argv[1]); return 0; } + argv[2] = unsplit_string(argv + 2, argc - 2, NULL); mod_usermode(un, argv[2]); return 1; }