Fix parsing of (P10) MODE <nickname> +<mode> <parameters>.
authorMichael Poole <mdpoole@troilus.org>
Sun, 14 Mar 2010 22:51:52 +0000 (18:51 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 14 Mar 2010 22:51:52 +0000 (18:51 -0400)
src/proto-p10.c (cmd_mode): Unsplit the mode and any trailing arguments.

src/proto-p10.c

index 638913a77216142d3448c89fb42dcb0446cc2a9f..6509fabb6cf61151cf8e541de3aa513e1bece9e3 100644 (file)
@@ -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;
     }