Commit Graph

31 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
Matthew Wild c909bca762 util.events: Add set_debug_hook() method 5 years ago
Matthew Wild 9972a600aa util.events: Fix loop construct (negative step required) 8 years ago
Kim Alvefur 43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Matthew Wild c3d3e85ce8 util.events: Fix comparison of event_name with nil instead of false (fixes #554) 10 years ago
Matthew Wild c0d46cbf2a util.events: Document data structures 10 years ago
Matthew Wild 8b320cb39f util.events: Add get_handlers() method 11 years ago
Kim Alvefur 3270779149 util.events: Add local reference to table.remove (fixes traceback) 11 years ago
Matthew Wild c98f87b4a7 util.events: Change from nil to false to indicate adding a global wrapper 11 years ago
Matthew Wild 2ab4157754 util.events: Add support for event wrappers, functions which can wrap the calling of event handlers to run code before/after an event (for debugging, statistics, logging purposes, etc.) 11 years ago
Kim Alvefur eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild 3df683edb7 util.events: Remove varargs, event handlers can now only accept a single parameter 13 years ago
Waqas Hussain e8e177385a util.events: Remove an event's table when it has no more handlers. 15 years ago
Waqas Hussain 3909d24931 util.events: Remove an event's table when it has no more handlers. 15 years ago
Waqas Hussain 152638d87b util.events: Event handler indices are now built lazily (faster server startup for large number of hosts). 16 years ago
Waqas Hussain 191c3849e2 util.events: Create new index on handler change instead of modifying existing one (this makes util.events fully reentrant). 16 years ago
Waqas Hussain 6f95b4de93 util.events: Fixed the exposed API for adding/removing sets of event handlers. 16 years ago
Waqas Hussain af976e466d util.events: Removed dispatcher creation functions (these weren't being used). 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild 4d626a622e util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively 16 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild b5dd531212 util.events: Convert from Windows line endings 17 years ago
Waqas Hussain d9a71da220 util.events: Replaced ipairs with slightly faster numeric for loop - #optimization 17 years ago
Waqas Hussain b782b7ad92 util.events: Dispatch code now accepts a variable number of arguments 17 years ago
Waqas Hussain ec51346b51 util.events: Much more efficient index building 17 years ago
Waqas Hussain 9e0d2195f1 util.events: handler priorities 17 years ago
Waqas Hussain cfc9bf6a35 util.events: event handlers can now return a result, which also interrupts further handling of the event 17 years ago
Waqas Hussain 1192c1a1f5 Added: util/events.lua: An event handling library 17 years ago