# Removing #100:""

Chuck Adams (cadams@weather.brockport.edu)
Wed, 13 Sep 1995 09:14:16 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    Coolin MacKaarmick drew these hieroglyphs:
    >
    >
    > An overenthusiastic use of set_verb_info() led me to rename a verb to the
    > empty string.   Thankfully I had another copy of the code, but I would
    > like to be rid of the now-useless verb #100:"".
    >
    > @rmverb #100:  and  @rmverb #100:""  don't work.
    >
    > ;delete_verb(#100, "")  doesn't work.
    >

    Answer:
    ; delete_verb(#100, tostr(("" in verbs(#100)) - 1))

    don't forget that ` -1 ' in there -- verbs are numbered starting at
    ZERO, not one.  (This is inconsistent with the rest of the MOO
    language and ought to be changed, IMO)

    Also IMO, the server should not allow blank verb names.

    chuck