dbref thing;
const char *object = NULL;
char *attrib, *name;
+ char *attrname;
char dbnum[40];
/* @decompile must always have an argument */
/* 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:
decompile_atrs(player, thing, Name(thing), attrib, prefix, skipdef);
break;
}
+ }
mush_free(name, "dd.string");
return;
}