Commit graph

21 commits

Author SHA1 Message Date
jesopo
d4243edf63 Remove _unhook and always use get_hooks() in IRCLineHandler 2018-08-31 13:44:39 +01:00
jesopo
b7cf524e98 Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
2018-08-31 13:44:39 +01:00
jesopo
07a63926c6 Log exceptions when calling events 2018-08-30 14:56:27 +01:00
jesopo
745141cb6d Give EventHooks their event name .lower() 2018-08-29 15:51:51 +01:00
jesopo
b47bf49830 Log event path along with timing in EventHook.call 2018-08-28 16:35:24 +01:00
jesopo
5602b95d70 Added .call_limited() to EventHook to avoid having a kwarg outside of **kwargs
in .call()
2018-08-28 16:04:35 +01:00
jesopo
0ff36444d4 expand kwargs in assure_call when we've got a hook 2018-08-28 15:13:56 +01:00
jesopo
b699c120a0 Change how specific events assure their hooks gets the event independant of
loading order
2018-08-28 14:55:08 +01:00
jesopo
20b90f955b Check if event objects should be purged after an event is called 2018-08-28 12:24:39 +01:00
jesopo
e5a5fa5c4b modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging
to be an object on the server object instead of an event call
2018-08-28 12:23:57 +01:00
jesopo
8307a1121a move priority constants to root of EventManager namespace 2018-07-15 23:53:59 +01:00
jesopo
68298bbccf Added EventHook.call_for_result to get a result or default from an event 2018-07-15 15:15:52 +01:00
jesopo
d12b61620d Implemented delimited "event chains" and changed pong.py to use it 2018-07-08 11:18:55 +01:00
jesopo
035d62f9d4 Added an event hook priority system 2018-07-02 12:23:33 +01:00
jesopo
0cc72d5d66 Added a "replay" system to EventManager hooks, to replay missed .calls 2017-12-26 10:32:36 +00:00
Evelyn
caab9b6714 Change line handling 2017-07-16 21:18:58 +01:00
jesopo
ac7b5c14f4
logging EventManager errors with EventManger is a bad idea 2017-01-27 21:36:54 +00:00
jesopo
c55982b11f
implemented error logging to EventManager (WIP) 2016-07-14 00:42:17 +01:00
jesopo
369b784a0d
added logs.py and changed EventHook objects to know their name. 2016-07-13 07:31:09 +01:00
jesopo
052e741da0
added a very unreliable and BAD IDEA way to unload modules. 2016-04-14 16:47:33 +01:00
jesopo
f943d63098
first commit. 2016-03-29 12:56:58 +01:00