aboutsummaryrefslogtreecommitdiff
path: root/src/EventManager.py
Commit message (Expand)AuthorAgeFilesLines
* pull `priority` out of `kwargs` in _hookGravatar jesopo2019-07-301-0/+4
* Revert "hook priority position should default to 0, not end"•••This reverts commit ff0cc59507249da262535895129d9ec3258b56a5. Gravatar jesopo2019-07-301-4/+5
* Revert "we should be checking if the new hook has a higher priority"•••This reverts commit b145e664e1c26322c916783b910050b7393fdb83. Gravatar jesopo2019-07-301-1/+1
* we should be checking if the new hook has a higher priorityGravatar jesopo2019-07-301-1/+1
* hook priority position should default to 0, not endGravatar jesopo2019-07-301-5/+4
* Remove debug printGravatar jesopo2019-07-281-1/+0
* 'name' -> 'key' (copypaste fail)Gravatar jesopo2019-07-281-2/+2
* Refactor hook kwargs to be stored as a list of tuples to support key duplicates•••closes #108 Gravatar jesopo2019-07-281-8/+28
* gotta str()-ify `kwargs` before logging itGravatar jesopo2019-07-151-2/+2
* src/EventManager.py: fix typo defualt -> defaultGravatar Mikaela Suomalainen2019-07-131-2/+2
* Re-add EventManager check to prevent _call() outside main threadGravatar jesopo2019-06-261-0/+3
* Refactor EventManager to only hold hooks on a root objectGravatar jesopo2019-06-261-253/+127
* Restrict EventManager calls to the main threadGravatar jesopo2019-06-221-0/+3
* Don't fail get_kwarg when self.kwarg[name] is falseyGravatar jesopo2019-06-161-2/+5
* check_purge() after removing a context as it could make a hook purgableGravatar jesopo2019-06-051-0/+1
* Give SentLine (and preproc.send events) a new event object, to track events•••related to a line after it is sent Gravatar jesopo2019-06-041-0/+3
* Switch back to events.name defaulting to None, use typing.cast to fix linting•••error Gravatar jesopo2019-05-181-2/+3
* give EventCallbacks their event nameGravatar jesopo2019-05-181-4/+6
* Hold context in EventCallback objects, add name<->context translation in•••ModuleManager Gravatar jesopo2019-05-101-2/+3
* Support one-shot event hooks (src/EventManager.py)Gravatar jesopo2019-02-141-1/+6
* Add `make_event(..)` to EventHookContextGravatar jesopo2019-01-301-0/+4
* Make sure to call the specific hook we've decided is valid (commands.py)Gravatar jesopo2019-01-301-0/+2
* Add `returns` type hint in EventManager.py.callGravatar jesopo2018-12-061-1/+1
* fix incorrect retyping of "event_path" as "event, path" (i wasn't paying enough•••attention) Gravatar jesopo2018-12-051-2/+2
* Add missing ")" from last commitGravatar jesopo2018-12-051-1/+1
* Don't do unnecessary work when someone tries to call a not-hooked-in-to eventGravatar jesopo2018-12-051-2/+9
* Clarify/fix type hints throughout EventManager.pyGravatar jesopo2018-12-021-7/+8
* Switch back to logging events as 2 messages as a lot of other logs can happen•••between the start and end of an event and grouping them together is very useful Gravatar jesopo2018-11-261-2/+4
* Log event timing in 1 message, not 2Gravatar jesopo2018-11-141-4/+2
* Fix/refactor issues brought up by type hint lintingGravatar jesopo2018-10-301-27/+39
* Add type/return hints throughout src/ and, in doing so, fix some cyclical•••references. Gravatar jesopo2018-10-301-98/+109
* Only log exceptions when they're not unsafeGravatar jesopo2018-10-161-3/+4
* Move src/Utils.py in to src/utils/, splitting functionality out in to modules of•••related functionality Gravatar jesopo2018-10-031-2/+2
* EventHook._call takes 3 argsGravatar jesopo2018-10-011-2/+2
* Add call_unsafe functions to EventManager.EventHook, to not swallow errors on•••specific function calls (e.g. preprocess.command) Gravatar jesopo2018-10-011-9/+24
* Add 'trace' logging level for src/Database.py and src/EventManager.py very•••verbose debugging Gravatar jesopo2018-10-011-2/+2
* Switch to using docstring for usage, permission and require_modeGravatar jesopo2018-09-301-0/+7
* Add !reloadscripts to modules/scripts.pyGravatar jesopo2018-09-291-4/+23
* Give EventHook objects their full delimited event nameGravatar jesopo2018-09-291-1/+1
* Pass parent EventHook down to childrenGravatar jesopo2018-09-271-1/+1
* Don't give IRCBot instance to things that don't need it, use a better way of•••doing default locations for config/database/log Gravatar jesopo2018-09-271-13/+11
* Create delimited|multiple|events from the correct EventHook when using•••delimited.event.chains Gravatar jesopo2018-09-261-1/+1
* Also use docstrings to check if a command has help available, allow one-string•••denotation of multiple event hooks Gravatar jesopo2018-09-261-12/+23
* Move most code in root directory to src/Gravatar jesopo2018-09-241-0/+226