From 7d8a903bfb38fe0273126ff96ebd0b6430c3e5b6 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Thu, 5 May 2011 18:30:02 -0400 Subject: [PATCH] Added in missing features in @decompile noticed within this PennMUSH 1.8.3p11 commit Author: captdeaf@gmail.com Date: Wed Oct 28 06:16:06 2009 +0000 Fixed a warning caused by using assignment in a while statement. No CobraMUSH Issue related to this. --- src/look.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/look.c b/src/look.c index bc2898d..5bb9cce 100644 --- a/src/look.c +++ b/src/look.c @@ -1592,6 +1592,7 @@ do_decompile(dbref player, const char *xname, const char *prefix, dbref thing; const char *object = NULL; char *attrib, *name; + char *attrname; char dbnum[40]; /* @decompile must always have an argument */ @@ -1620,8 +1621,10 @@ do_decompile(dbref player, const char *xname, const char *prefix, /* if we have an attribute arg specified, wild match on it */ if (attrib && *attrib) { - switch (dbflag) { - case DEC_DB: + attrname = attrib; + while ((attrib = split_token(&attrname, ' ')) != NULL) { + switch (dbflag) { + case DEC_DB: decompile_atrs(player, thing, dbnum, attrib, prefix, skipdef); break; default: @@ -1631,6 +1634,7 @@ do_decompile(dbref player, const char *xname, const char *prefix, decompile_atrs(player, thing, Name(thing), attrib, prefix, skipdef); break; } + } mush_free(name, "dd.string"); return; } -- 2.30.2