]> git.pond.sub.org Git - empserver/commitdiff
(command): Don't fold conditionals to lower case. This was added
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 22 May 2006 20:04:54 +0000 (20:04 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 22 May 2006 20:04:54 +0000 (20:04 +0000)
early in Chainsaw 3, most probably to make them case insensitive.
This is of debatable utility, and inconsistent with the case
sensitivity of commands and arguments.  It also interferes with string
conditionals: fleet#A is folded to fleet#a, which means something
else!

src/lib/player/player.c

index b05cb419c006877802daef782286f3bc9f336b7e..0c649660b170713b84f97da110cfe4deb3eafea6 100644 (file)
@@ -153,9 +153,6 @@ command(void)
              scanspace, &redir) < 0) {
        pr("See \"info Syntax\"?\n");
     } else {
-       if (player->condarg != NULL)
-           for (i = 0; i < strlen(player->condarg); i++)
-               player->condarg[i] = tolower(player->condarg[i]);
        if (dispatch(player->combuf, redir) < 0)
            pr("Try \"list of commands\" or \"info\"\n");
     }