aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
Commit message (Collapse)AuthorAgeFilesLines
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-6/+7
|
* util.events: Fix comparison of event_name with nil instead of false (fixes #554)Matthew Wild2016-05-121-1/+1
|
* util.events: Document data structuresMatthew Wild2015-12-231-0/+5
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-3/+5
| | | | return them in a table at the end
* MergeMatthew Wild2015-05-061-1/+2
|\
| * util.events: Add local reference to table.remove (fixes traceback)Kim Alvefur2015-05-051-1/+2
| |
* | util.events: Add get_handlers() methodMatthew Wild2015-05-061-0/+4
|/
* util.events: Change from nil to false to indicate adding a global wrapperMatthew Wild2015-04-281-2/+2
|
* util.events: Add support for event wrappers, functions which can wrap the ↵Matthew Wild2015-04-281-1/+67
| | | | calling of event handlers to run code before/after an event (for debugging, statistics, logging purposes, etc.)
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-1/+1
|
* util.events: Remove varargs, event handlers can now only accept a single ↵Matthew Wild2013-07-151-3/+3
| | | | parameter
* util.events: Remove an event's table when it has no more handlers.Waqas Hussain2010-12-191-0/+3
|
* util.events: Event handler indices are now built lazily (faster server ↵Waqas Hussain2010-09-191-3/+8
| | | | startup for large number of hosts).
* util.events: Create new index on handler change instead of modifying ↵Waqas Hussain2010-09-171-4/+2
| | | | existing one (this makes util.events fully reentrant).
* util.events: Fixed the exposed API for adding/removing sets of event handlers.Waqas Hussain2010-09-171-2/+2
|
* util.events: Removed dispatcher creation functions (these weren't being used).Waqas Hussain2010-09-171-31/+1
|
* Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
* | util.events: Rename add_plugin() and remove_plugin() to add_handlers() and ↵Matthew Wild2009-12-311-4/+4
|/ | | | remove_handlers() respectively
* Add copyright header to those files missing oneMatthew Wild2009-07-101-0/+8
|
* util.events: Convert from Windows line endingsMatthew Wild2009-07-091-99/+99
|
* util.events: Replaced ipairs with slightly faster numeric for loop - ↵Waqas Hussain2009-06-261-4/+4
| | | | #optimization
* util.events: Dispatch code now accepts a variable number of argumentsWaqas Hussain2009-05-171-4/+4
|
* util.events: Much more efficient index buildingWaqas Hussain2009-05-171-12/+11
|
* util.events: handler prioritiesWaqas Hussain2009-05-161-3/+5
|
* util.events: event handlers can now return a result, which also interrupts ↵Waqas Hussain2009-05-151-2/+4
| | | | further handling of the event
* Added: util/events.lua: An event handling libraryWaqas Hussain2009-03-301-0/+96