Fix Gitlab issue #30: Say is broken.

This commit is contained in:
Eric S. Raymond 2017-07-20 10:47:33 -04:00
parent aa5870a92e
commit 08f260c4d5

View file

@ -1144,18 +1144,19 @@ static int rub(verb_t verb, obj_t obj)
static int say(struct command_t *command) static int say(struct command_t *command)
/* Say. Echo WD2. Magic words override. */ /* Say. Echo WD2. Magic words override. */
{ {
long wd; if (command->type2 == MOTION &&
enum wordtype type; (command->id2 == XYZZY ||
get_vocab_metadata(command->raw2, &wd, &type); command->id2 == PLUGH ||
if (wd == XYZZY || command->id2 == PLOVER)) {
wd == PLUGH || return GO_WORD2;
wd == PLOVER || }
wd == FEE || if (command->type2 == ACTION &&
wd == FIE || (command->id2 == FEE ||
wd == FOE || command->id2 == FIE ||
wd == FOO || command->id2 == FOE ||
wd == FUM || command->id2 == FOO ||
wd == PART) { command->id2 == FUM ||
command->id2 == PART)) {
return GO_WORD2; return GO_WORD2;
} }
sspeak(OKEY_DOKEY, command->raw2); sspeak(OKEY_DOKEY, command->raw2);