← Back to team overview

mudlet-makers team mailing list archive

[Bug 1180168] Re: unregisterEventHandler()

 

Migrating issues to Github, please follow the new discussion here:
https://github.com/Mudlet/Mudlet/issues/686

This issue needs to be closed and there is no appropriate status, so
will set it to "Opinion" just for migration purposes.

** Bug watch added: github.com/Mudlet/Mudlet/issues #686
   https://github.com/Mudlet/Mudlet/issues/686

** Changed in: mudlet
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1180168

Title:
  unregisterEventHandler()

Status in Mudlet:
  Opinion

Bug description:
  It would be very useful for scripting to have a way to unregister an
  event handler, so you could script "one run" event handlers and such.
  For example, if I wanted to script something to happen when I arrived
  at a destination, I could do:

  registerAnonymousEventHandler("mmapper arrived", "my_function")
  function my_function(event, room)
    if room == "room I want" then
      unregisterEventHandler("mmapper arrived", "my_function")

      <do stuff I want to do in this room>
    end
  end

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1180168/+subscriptions


References