PennMUSH Community

Ticket #7479 (closed suggested feature: fixed)

Opened 10 months ago

Last modified 7 months ago

@hook/override with no attribute

Reported by: Talvo Assigned to:
Priority: minor Milestone: 1.8.3p7
Keywords: Cc:
Visibility: Public

Description

Hey,

The patch below alters @hook/override so that it can be used without an <attribute> (ie, @hook/override +foo=#3). In this case, all attributes on the object are matched against the command (and all matching attributes are run). So you can, for example, use separate attributes on a single object for +foo/bar, +foo/baz and +foo/boing, then @hook/override +foo=<dbref>, without having to try and combine all the switches/commands into a single $-command.

Hope you think it's some use,

Mike

Attachments

hook-noattr.patch.txt (3.9 kB) - added by Talvo on 10/23/07 11:38:34.

Change History

10/23/07 11:38:34 changed by Talvo

  • attachment hook-noattr.patch.txt added.

10/23/07 12:52:43 changed by Alan Schwartz

I think that's a sweet idea. :)

 - Jav.

 
Quoting Penndev (pennmush-bugs@pennmush.org):
> #7479: @hook/override with no attribute
> ------------------+---------------------------------------------------------
> Reporter:  Talvo  |         Type:  suggested feature
>   Status:  new    |     Priority:  minor            
> Keywords:         |   Visibility:  Public           
> ------------------+---------------------------------------------------------
>  Hey,
> 
>  The patch below alters @hook/override so that it can be used without an
>  <attribute> (ie, @hook/override +foo=#3). In this case, all attributes on
>  the object are matched against the command (and all matching attributes
>  are run). So you can, for example, use separate attributes on a single
>  object for +foo/bar, +foo/baz and +foo/boing, then @hook/override
>  +foo=<dbref>, without having to try and combine all the switches/commands
>  into a single $-command.
> 
>  Hope you think it's some use,
> 
>  Mike
> 
> -- 
> Ticket URL: <http://dev.pennmush.org/ticket/7479>
> Penndev <http://www.pennmush.org/dev/>
> PennMUSH Development

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Javelin@M*U*S*H, once Paul@DuneMUSH | Alan Schwartz <dunemush@pennmush.org>
   (mush.pennmush.org 4201)         |     
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

01/19/08 23:11:57 changed by raevnos

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.8.3p7.