Author Topic: Ulx Unhook Commands  (Read 2184 times)

0 Members and 1 Guest are viewing this topic.

Offline Sladewill

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Ulx Unhook Commands
« on: January 19, 2013, 11:56:44 AM »
Would it be possible to add an addition into the root of ulx to allow the unhooking of commands so that the default commands can be overriden by another?

So currently you have this

ulx.command

Would it be possible to add

ulx.unhookcommand

So that it can be overriden?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx Unhook Commands
« Reply #1 on: January 19, 2013, 01:07:10 PM »
1) Why? What are you trying to override?
2) Technically, ULX wouldn't be where you over-ride.
ULIb would be, and, we already have a hook that allows overriding any command.
See Ulib's UlibCommandCalled hook.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming