[Tinymux] Question on clearing attributes...
Neutron
neutron at ussredemption.org
Thu Dec 15 03:37:35 EST 2005
Hey everyone!
I'm trying to convert a piece of code from Pennmush to TinyMUX and having a
slight bit of difficulty. In the code, it calls the Pennmush wipe()
function (See snippet below):
[wipe(#42/%q0)]
The only problem is, TinyMUX doesn't have a wipe() function. It has an
@wipe command, but that won't work in the code I'm using without major
revision. I was wondering if someone could tell me if there is a function
in TinyMUX that clears attributes off an object completely.
For the code geeks, here's the full snippet of code that I'm trying to get
working -
&CMD-+EVENTS-DELETE Events System=$+events/delete *:think
pemit(%#,switch(1,lte(%0,0),ansi(hr,That is not a valid
event.),gt(%0,words(lattr(#42/event_*))),ansi(hr,That is not a valid
event.),[setq(0,extract(sortby(#42/sortby_events,lattr(#42/event_*)),%0,1))]
or(isstaff(%#),strmatch(u(#42/fun_get_contact,%q0),%N)),ansi(hg,You delete
event #%0)[wipe(#42/%q0)],ansi(hr,Only the submitter may delete an event.)))
More information about the Tinymux
mailing list